Word Automation: Read Only notification

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2005
Posts: 1
Reputation: ceekay is an unknown quantity at this point 
Solved Threads: 0
ceekay ceekay is offline Offline
Newbie Poster

Word Automation: Read Only notification

 
0
  #1
Mar 18th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Word Automation: Read Only notification

 
0
  #2
Mar 18th, 2005
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?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC