RicksAtWork
Programmer
I am programtically creating a new workbook and copying data to it.
It then saves itself.
I want to be able to control the print settings of the new worksheets, however my boss doesnt want buttons added to the generated worksheets/workbook.
Is it possible to add code to the workbook when I am creating it from the parent workbook that will always run before the user trys to print the exported workbook?
i.e.
With ActiveSheet
.PageSetup.Orientation = xlLandscape
.PageSetup.FitToPagesWide = 1
.PageSetup.LeftFooter = "targetWorkSheetName"
End With
It then saves itself.
I want to be able to control the print settings of the new worksheets, however my boss doesnt want buttons added to the generated worksheets/workbook.
Is it possible to add code to the workbook when I am creating it from the parent workbook that will always run before the user trys to print the exported workbook?
i.e.
With ActiveSheet
.PageSetup.Orientation = xlLandscape
.PageSetup.FitToPagesWide = 1
.PageSetup.LeftFooter = "targetWorkSheetName"
End With