Hi Loungers,
I have hijacked FileSaveAs with the following code (I’ve stripped out a lot of the stuff I was doing whilst trying to hone in on the problem):
Sub FileSaveAs()
Dim dlgSaveAs As FileDialog
Set dlgSaveAs = Application.FileDialog( FileDialogType:=msoFileDialogSaveAs)
With dlgSaveAs
If .Show = -1 Then ‘user clicked OK
.Execute
End If
End With
End Sub
If there are two or more documents open, Word will sometimes switch to a different open document just before displaying the msoFileDialogSaveAs, which causes the user to save the wrong file.
Any insights GREATLY appreciated!