Wrangler36
Technical User
I am using automation to open three Word files from within Access. I would like the Word application to be invisible until the three files have been opened. They are each being opened in their own windows.
I am trying to eliminate the screen flashing that the user sees when the three Word files are opened consecutively. I thought the command "WA.Visible = False" would accomplish this, but I still see the three files being opened, along with the screen flashing.
Here is a smaple of the code I'm using:
Set WA = CreateObject("Word.Application")
WA.Visible = False
With WA
.Documents.Open strPath & "File1.doc"
some other code
End With
With WA
.Documents.Open strPath & "File2.doc"
some other code
End With
With WA
.Documents.Open strPath & "File3.doc"
some other code
End With
WA.Visible = False
Set WA =nothing
How can I make the Word application (for each of the three windows) invisible until all three files have been opened?
Thanks.
I am trying to eliminate the screen flashing that the user sees when the three Word files are opened consecutively. I thought the command "WA.Visible = False" would accomplish this, but I still see the three files being opened, along with the screen flashing.
Here is a smaple of the code I'm using:
Set WA = CreateObject("Word.Application")
WA.Visible = False
With WA
.Documents.Open strPath & "File1.doc"
some other code
End With
With WA
.Documents.Open strPath & "File2.doc"
some other code
End With
With WA
.Documents.Open strPath & "File3.doc"
some other code
End With
WA.Visible = False
Set WA =nothing
How can I make the Word application (for each of the three windows) invisible until all three files have been opened?
Thanks.