on 09-09-2013 9:02 AM
Hi.
I have workbook with macro which formats result of query and saves it as pdf file on user's pc.
At the end of execution macro should close current workbook.
I use the code:
ActiveWorkbook.Close (False)
but critical error occurs!
How can i solve this problem?
Try with Workbooks("Workbook Name.xls").Close Savechanges:=True
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this : http://scn.sap.com/thread/3277944
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.