Thread: [Solved] Saveas error handling
View Single Post
 
Old 03-28-2012, 05:06 AM
jillapass jillapass is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Dec 2011
Posts: 26
jillapass is on a distinguished road
Default

Hello Paul
You are being so helpful and yet I still cannot get mine to work.
I have gone back to basics and created a macro by recording the steps I am taking.

Here is the very simple bit of code, no filenames being input or anything, and yet it still fails for me.

Code:
Private Sub CommandButton1_Click()
    
    ActiveDocument.SaveAs FileName:="M:\Care Plan System\testdoc 1259.docx", _
        FileFormat:=wdFormatXMLDocument, LockComments:=False, Password:="", _
        AddToRecentFiles:=True, WritePassword:="", ReadOnlyRecommended:=False, _
        EmbedTrueTypeFonts:=False, SaveNativePictureFormat:=False, SaveFormsData _
        :=False, SaveAsAOCELetter:=False
End Sub
Reply With Quote