Hello, I am using the following code to print out an Excel document from within Access 2003 and it is working great.
If Extension = ".xls" Then
Path = "\\server02\Common\emqc\plants\Setups\Winding\"
Dim appexcel As Object: Set appexcel = CreateObject("Excel.Application")
appexcel.workbooks.Open Path & FilenameSheet
appexcel.Visible = False: appexcel.ActiveWindow.SelectedSheets.PrintOut Copies:=1: Exit Sub
End If
Now I would like to know how to modify this code to print a .PDF document.
Thank you for any help
If Extension = ".xls" Then
Path = "\\server02\Common\emqc\plants\Setups\Winding\"
Dim appexcel As Object: Set appexcel = CreateObject("Excel.Application")
appexcel.workbooks.Open Path & FilenameSheet
appexcel.Visible = False: appexcel.ActiveWindow.SelectedSheets.PrintOut Copies:=1: Exit Sub
End If
Now I would like to know how to modify this code to print a .PDF document.
Thank you for any help