M
matt101
Hello,
I have a macro which allows the user to save a document under a name
they specify by pressing a button. I want to remove all other methods
of saving, so while its easy to remove the buttons on the File menu and
Standard toolbar, is it possible to have the Close button in the top
right corner to display the same save option as in the following macro?
If so, what should be added to the macro?
Thanks in advance,
Sub CreateBackup()
ChangeFileOpenDirectory _
"\\servername\folderpath"
strDocName = InputBox("Enter the name of your document.")
ActiveDocument.SaveAs FileName:=strDocName, _
FileFormat:=wdFormatDocument _
, LockComments:=False, Password:="", AddToRecentFiles:=True, _
WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:= _
False
End Sub
I have a macro which allows the user to save a document under a name
they specify by pressing a button. I want to remove all other methods
of saving, so while its easy to remove the buttons on the File menu and
Standard toolbar, is it possible to have the Close button in the top
right corner to display the same save option as in the following macro?
If so, what should be added to the macro?
Thanks in advance,
Sub CreateBackup()
ChangeFileOpenDirectory _
"\\servername\folderpath"
strDocName = InputBox("Enter the name of your document.")
ActiveDocument.SaveAs FileName:=strDocName, _
FileFormat:=wdFormatDocument _
, LockComments:=False, Password:="", AddToRecentFiles:=True, _
WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:= _
False
End Sub