The following code is part of a custom saving vba macro used in word :
Private Sub ShowFileSaveAsDialog(ByVal strDir As String)
Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogSaveAs)
.InitialFileName = strDir
If .Show = CANCEL_PRESSED Then
Set fd = Nothing
The saveas dialog box is shown, .execute method actually does the save. Works right? Well, not quite. If one document is open, it works perfectly. However, with more than one document open, Word seems to determine which document is to be saved at random, regardless of which was active and had focus. Very frustrating when a user names a file one thing and then finds out it saved a copy of something else. Anyone know of a way to force it to save the correct active document?