ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Closing ReadOnly file using VBA (https://www.excelbanter.com/excel-programming/288073-closing-readonly-file-using-vba.html)

acces

Closing ReadOnly file using VBA
 
I have following problem:

File is open as readonly. Some changes in this workbook are made. How
can I close this changed workbook using VBA if I wouldnīt save this
workbook as copy of original workbook?

Activeworkbook.close savechanges = false - didnīt work

Any idea?

Version: Excel 2000

Please help


---
Message posted from http://www.ExcelForum.com/


Tom Ogilvy

Closing ReadOnly file using VBA
 
Activeworkbook.close savechanges:= false

with the corrected syntax should work. It appear to work for most other
people.

--
Regards,
Tom Ogilvy


"acces " wrote in message
...
I have following problem:

File is open as readonly. Some changes in this workbook are made. How
can I close this changed workbook using VBA if I wouldnīt save this
workbook as copy of original workbook?

Activeworkbook.close savechanges = false - didnīt work

Any idea?

Version: Excel 2000

Please help


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 06:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com