How do you stop Macros opening read only files?

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top