Open file in write mode while locked by other user

S

SHewes

Hi,

I'm making a macro then opens all the files in a determined folder and does
a global find/replace in each file.

The only problem is that when a user is using a file a popup open asking me
3 questions (1) Open in READ ONLY mode (2) Open and merge changes (3) Notify
me when file is available

I do not want that popup message and I want to open in READ ONLY in these
cases because a put after the OPEN a line saying

If ActiveDocument.ReadOnly = True Then
write unavailable file on report
Else
do the changes
End If
 

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

Top