Hi All,
I'm wondering if I can get some help with creating a macro to print a range in excel to PDF. I have started recording some code but this is as far as I can get it:
I would like to include that it automatically uses the "Microsoft print to PDF" printer and a fixed folder or path the file is printed to .
Any help would be much appreciated
I'm wondering if I can get some help with creating a macro to print a range in excel to PDF. I have started recording some code but this is as far as I can get it:
VBA Code:
Range("B2:E137").Select
ActiveSheet.PageSetup.PrintArea = "$B$2:$E$137"
ActiveSheet.PageSetup.FitToPagesWide = 1
ActiveSheet.PageSetup.FitToPagesTall = 2
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
I would like to include that it automatically uses the "Microsoft print to PDF" printer and a fixed folder or path the file is printed to .
Any help would be much appreciated