I have a routine to print a worksheet using Application.Dialogs(xlDialogPrint).Show
This works fine if user is printing to a printer
However - I want to allow the user to Print To PDF but save the PDF to a Specific Folder
The Print to PDF works fine except I cant figure out how to default the location which seems to randomly change
I have tried setting specific path in VB
DesktopPath = ActiveWorkbook.Path
ChDir DesktopPath
and
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
ChDir DesktopPath
Both of these return the correct path but have no effect on where the default location is for printing to PDF
Thanks in advance for any assistance
This works fine if user is printing to a printer
However - I want to allow the user to Print To PDF but save the PDF to a Specific Folder
The Print to PDF works fine except I cant figure out how to default the location which seems to randomly change
I have tried setting specific path in VB
DesktopPath = ActiveWorkbook.Path
ChDir DesktopPath
and
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
ChDir DesktopPath
Both of these return the correct path but have no effect on where the default location is for printing to PDF
Thanks in advance for any assistance