it worked once then i kept getting the same message
'1004'
Method 'ExportAsFixedFormat' of object 'Range' failed
my vba is:
Sub EXP_PDF()
Dim rng As Range
Set rng = Range("E3:N108")
Dim fileName As String
fileName = "Macintosh HD:Users:jamiecroft:Documents:JRC Music Services:Invoice PDF:Invoive test.pdf"
rng.ExportAsFixedFormat Type:=xlTypePDF, _
fileName:=fileName, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=True, _
From:=1, To:=1, OpenAfterPublish:=True
End Sub
'1004'
Method 'ExportAsFixedFormat' of object 'Range' failed
my vba is:
Sub EXP_PDF()
Dim rng As Range
Set rng = Range("E3:N108")
Dim fileName As String
fileName = "Macintosh HD:Users:jamiecroft:Documents:JRC Music Services:Invoice PDF:Invoive test.pdf"
rng.ExportAsFixedFormat Type:=xlTypePDF, _
fileName:=fileName, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=True, _
From:=1, To:=1, OpenAfterPublish:=True
End Sub