Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I hide the "File is using!" Dialog?

Status
Not open for further replies.

exception

IS-IT--Management
May 25, 2003
2
NG
When a word file is used by another user, I want to open it readOnly, but how can I hide the dialog of "File is using!" by the default mode of "ReadOnly"?

The following is the source code:

wordApp.displayAlerts = wdAlertsNone
Set WorkDoc = WordApp.Documents.Open(fileName, ConfirmConversions _
:=False, ReadOnly:=True, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto, Visible:=WordAppVisible)

wordApp.displayAlerts = wdAlertsAll
 
Sorry,the problem occurs with the version of Word2K!
 
If you save the file as read only, you wont see the dialog box.
- Hashim [afro]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top