ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to stop macros opening read only files? (https://www.excelbanter.com/excel-programming/355549-how-stop-macros-opening-read-only-files.html)

Dave[_65_]

How to stop macros opening read only files?
 
I've set up a standard form (form.xls) that copies certain cells
values, opens up a database file (database.xls), pastes them neatly in
the next avaliable row, saves then closes the database file.

However if someone has database.xls open my macro still opens it,
copies and pretends to save it without actually saving the data.

Basically how can I write a couple of lines that stops the read only
database file being opened?



All times are GMT +1. The time now is 04:03 PM.

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