Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am trying to run the following macro for all sheets in a workbook: Sub VBAMacro() Cells.Select Range("D1").Activate ActiveSheet.PageSetup.PrintArea = "" With ActiveSheet.PageSetup .PrintGridlines = True .Orientation = xlLandscape .PrintTitleRows = "" .Zoom = False .FitToPagesWide = 1 .FitToPagesTall = 5 End With ActiveWorkbook.Save End Sub How can I make it work? -- Thank you, Jodie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Summary page for 12 worksheets | Excel Discussion (Misc queries) | |||
Printing several worksheets as on page | Excel Programming | |||
Add page numbers to multiple worksheets without changing page setu | Excel Discussion (Misc queries) | |||
Printing multiple page worksheets on 1 single page | Excel Discussion (Misc queries) | |||
How do I use 2 worksheets in 1 page | Excel Worksheet Functions |