[/code]
Set Wkb1 = xlApp.Workbooks.Open(CurrentProject.Path & "\Book1.xlsx")
Wkb1.Save // To save the Excel workbook after updating and writing contents.
[/code]
I use the above vba code snippet to save contents in an excel workbook and save it in my Current Folder.
Is there a way to save the same Excel workbook Book1.xlsx as a pdf through MsAccess vba preserving the same positioning and formatting of different columns and contents in the Excel Workbook.
Set Wkb1 = xlApp.Workbooks.Open(CurrentProject.Path & "\Book1.xlsx")
Wkb1.Save // To save the Excel workbook after updating and writing contents.
[/code]
I use the above vba code snippet to save contents in an excel workbook and save it in my Current Folder.
Is there a way to save the same Excel workbook Book1.xlsx as a pdf through MsAccess vba preserving the same positioning and formatting of different columns and contents in the Excel Workbook.