Hello,
I have a script which opens a file in Word:
Currently this creates a Word instance behind any existing applications. What I need to know is, how can I make this the active/foremost window from the script?
Thanks.
I have a script which opens a file in Word:
Code:
Sub openWord(sFilename)
Set oWord = CreateObject("Word.Application")
oWord.Visible = True
oWord.Documents.Open(sFileName)
Set oWord = nothing
End Sub
Thanks.