Hi Guys,
This WAS working, and IS working in some of my workbooks, but not in the version I actually want to use >:|.
I can't work out what I've done wrong, as I am just copying and pasting the code over from the one where it works to the one where it doesn't. It prints as a PDF, it just doesn't go to the directory specified.
This WAS working, and IS working in some of my workbooks, but not in the version I actually want to use >:|.
I can't work out what I've done wrong, as I am just copying and pasting the code over from the one where it works to the one where it doesn't. It prints as a PDF, it just doesn't go to the directory specified.

Code:
Sub printtopdf()
'
' Print to pdf AND save to the server in the everyone/olivia drive
'
ChDir "z:\Everyone\Olivia\saved"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, filename:= _
Range("a1") & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
box = MsgBox("This message means the quote has been printed as a PDF and saved to the server.", vbOKOnly, "Saved to server")
End Sub