Opening an opened Word Doc from VB 6.0 does not ask for confirmat

  • Thread starter Spiros Rentoulas
  • Start date
S

Spiros Rentoulas

Opening a Word Document from VB 6.0 that is already opened from another
workstation does not display the usual confirmation box about read only
document.
It just opens the document, displays the (read only) text in WinWord header
caption but does not warn the user.

However when I try to open the document manually using windows explorer I do
get the warning message and manage to open the document.

The vb code is the following:

Global GWordObj As Object
....
Set GWordObj = CreateObject("Word.Application")
....
GWordObj.Visible = True
GWordObj.DisplayAlerts = wdAlertsAll
GWordObj.Documents.Open (DocfileName), True
 

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