C
Capitalgman
I am a newbie and am lost.
I have the following script that does just what I need, except it
opens
behind all other open windows. How do I get the file dialog to open
in front
of the other windows?
Thanks for your help.
Const msoFileDialogOpen = 1
Set objWord = CreateObject("Word.Application")
objWord.ChangeFileOpenDirectory("c:\Docs")
objWord.FileDialog(msoFileDialogOpen).Title = "Select Your File"
objWord.FileDialog(msoFileDialogOpen).AllowMultiSelect = True
If objWord.FileDialog(msoFileDialogOpen).Show = -1 Then
objWord.Visible = True
For Each objFile in
objWord.FileDialog(msoFileDialogOpen).SelectedItems
Set objDoc = objWord.Documents.Open(objFile)
Next
End If
I have the following script that does just what I need, except it
opens
behind all other open windows. How do I get the file dialog to open
in front
of the other windows?
Thanks for your help.
Const msoFileDialogOpen = 1
Set objWord = CreateObject("Word.Application")
objWord.ChangeFileOpenDirectory("c:\Docs")
objWord.FileDialog(msoFileDialogOpen).Title = "Select Your File"
objWord.FileDialog(msoFileDialogOpen).AllowMultiSelect = True
If objWord.FileDialog(msoFileDialogOpen).Show = -1 Then
objWord.Visible = True
For Each objFile in
objWord.FileDialog(msoFileDialogOpen).SelectedItems
Set objDoc = objWord.Documents.Open(objFile)
Next
End If