cravincullen
New Member
- Joined
- Jun 8, 2015
- Messages
- 1
Hello,
I've been using a macro to save unique invoices as pdf files to distribute to vendors. My macro used to work, but now does not. After attempting to use macro by hitting the button I've created, I receive the error
'Microsoft Visual Basic
400'
I'm unsure of how I've fouled what useful code was there, but have attached screen shots that will hopefully be helpful. As you can see, I'm using a Mac, and Excel Mac 2011 14.5.1... unsure if that is of any consequence. The file path should be correct, I have not moved that file or edited permissions or anything of the sort.
Macro in text for reference:
Sub SavePDF()
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="Macintosh HD:Users:Cullenation:Desktop:CravinVapes - SHAWNS:" & _
ActiveSheet.Range("A8").Value & ActiveSheet.Range("E4").Value & ".pdf", _
OpenAfterPublish:=True
End Sub
While I'm at it, a pop-up with an option to print to a local printer would be divine.
I've been using a macro to save unique invoices as pdf files to distribute to vendors. My macro used to work, but now does not. After attempting to use macro by hitting the button I've created, I receive the error
'Microsoft Visual Basic
400'
I'm unsure of how I've fouled what useful code was there, but have attached screen shots that will hopefully be helpful. As you can see, I'm using a Mac, and Excel Mac 2011 14.5.1... unsure if that is of any consequence. The file path should be correct, I have not moved that file or edited permissions or anything of the sort.
Macro in text for reference:
Sub SavePDF()
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="Macintosh HD:Users:Cullenation:Desktop:CravinVapes - SHAWNS:" & _
ActiveSheet.Range("A8").Value & ActiveSheet.Range("E4").Value & ".pdf", _
OpenAfterPublish:=True
End Sub
While I'm at it, a pop-up with an option to print to a local printer would be divine.