Article ID: 184668
Article Last Modified on 1/22/2007
With ActiveDocument
.ActiveWindow.Caption = .Path + "\" + .ActiveWindow.Document.Name
End With
To modify the default FileSave command, use the following steps:
With ActiveDocument
.ActiveWindow.Caption = .Path + "\" + .ActiveWindow.Document.Name
End With
For example, the completed FileSave macro should read as follows:
Sub FileSave()
'
' FileSave Macro
' Saves the active document or template and adds the path
' and file name to document title bar.
'
ActiveDocument.Save
With ActiveDocument
.ActiveWindow.Caption = .Path + "\" + .ActiveWindow.Document.Name
End With
End Sub
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vba filename
Keywords: kbconversion kbconvert kbdtacode kbhowto KB184668