Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have recorded the following macro to select sheets of a workbook as a group
& view them in print preview, then return to normal view (this is the my boss wanted to view them), is there any way to 'generalise' it so it can be used in any workbook i.e. without listing tab names. also, his screen is quite big but the document doesnt fill it in print preview, is there any way i can get the document to fill the screen in print preview? Sub Ken_Full_Screen_View() ' ' Ken_View Macro ' Macro recorded 01/04/2009 by lois ' ' ActiveWindow.Zoom = 400 ActiveWindow.ScrollWorkbookTabs Position:=xlLast Sheets(Array("Cover Sheet", "FAULTS BY Nº", "FAULTS BY COST", "Summary", "No 1", _ "No 2", "No 3", "No 4", "No 5", "No 6", "No 7", "No 8")).Select Sheets("Cover Sheet").Activate ActiveWindow.SelectedSheets.PrintPreview End Sub Sub Ken_Normal_View() ' ' Ken_Normal_View Macro ' Macro recorded 01/04/2009 by lois ' ' Sheets("Cover Sheet").Select ActiveWindow.Zoom = 100 End Sub -- Lois |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macros: can you copy macros from one doc to another? | Excel Discussion (Misc queries) | |||
Excel 2007 macros - how to merge 5 macros together into one | Excel Discussion (Misc queries) | |||
Macros warning always shows up, even if all macros removed | Excel Discussion (Misc queries) | |||
Macros - copying macros from one computer to another | Excel Discussion (Misc queries) | |||
Training: More on how to use macros in Excel: Recording Macros | Excel Worksheet Functions |