The issue I am having is that when I export the file to a PDF using VBA I loose my company logo at the top of the pdf version of the worksheet. It for some reason will not export with the file. While when I "print to pdf" it will stay attached. I have tried doing a command so that it prints to PDF and automatically save it in the same location with the same name with the current date but it will not let me "select a printer" as part of the command, so when I close out of the file and reopen it, it defaults back to the default printer without selecting "print to pdf". I have tried linking the image to cells, print area, and various areas of the work sheet with no luck. Does anyone have any incite into this? Below is the VBA formula I currently have.
Sub ExportPDF()
Dim sFile As String
sFile = ThisWorkbook.Path & "" & ActiveWorkbook.Name & Format(Date, "mm-dd-yy")
Sheets("Sheet1").Select
ActiveSheet.PageSetup.PrintArea = "$B$1:$Z$68"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=sFile, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub
Sub ExportPDF()
Dim sFile As String
sFile = ThisWorkbook.Path & "" & ActiveWorkbook.Name & Format(Date, "mm-dd-yy")
Sheets("Sheet1").Select
ActiveSheet.PageSetup.PrintArea = "$B$1:$Z$68"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=sFile, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub