Hi,

I wrote a macro to open a file as Read Only, so normally even if that file is allready open it should open as Read Only no ??


Now when the file is allready open and I run the macro I stil get that stupid notification "Open as read Only - Notify - Cancel"

Does anyone now how to bypass this annoying notification ??

Here is the macro

Documents.Open FileName:="d2.doc", ConfirmConversions:=False, ReadOnly:= _
True, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="" _
, Revert:=True, WritePasswordDocument:="", WritePasswordTemplate:="", _
Format:=wdOpenFormatAuto

I've never messed with word macro's, but I know a little bit about VB. Can you add VB source code to a macro?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.