Code such as the code below executes ugly.
The Documents.Add causes the blob to appear (an empty hidden Word window)
One has to then take action to remove the critter.
Quit causes the blob to briefly appear, then go away.
Makes for an ugly interface.
Is the only way around the issue to lock the desktop with an API?
Or could one just lock the Word window after making it invisible?
[vba]
Dim appWord As Word.Application
Dim docWord As Word.Document
Set appWord = New Word.Application
With appWord
.ScreenUpdating = False
.Visible = False
.WindowState = wdWindowStateMinimize
' Blob appears
Set docWord = .Documents.Add(Visible:=False)
With docWord
' Makes blob disappear
.ActiveWindow.Visible = False
' Do stuff here
.Close
End With
' Blob appears, then goes away
.Quit
End With
Set docWord = Nothing
Set appWord = Nothing
[/vba]