Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have an excel file with many sheets. I would like to do the same
'Page Setup' and 'Print Area -Set Print Area' for every page in the file. Is there a way to do this without having to do each sheet manually? Thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
wrote in message
ups.com... I have an excel file with many sheets. I would like to do the same 'Page Setup' and 'Print Area -Set Print Area' for every page in the file. Is there a way to do this without having to do each sheet manually? Thanks. Select all the sheets. (To do this, click on the tab of the first, then hold down SHIFT whilst clicking the tab of the last). Then, whatever you do to the visible sheet (such as setting the print area) will be applied to all. So, don't forget to remove the multiple sheet selection (click any intermediate sheet tab) before you carry on with other work! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Oct 27, 12:42 am, "Stephen" <none wrote:
wrote in message ups.com... I have an excel file with many sheets. I would like to do the same 'Page Setup' and 'Print Area -Set Print Area' for every page in the file. Is there a way to do this without having to do each sheet manually? Thanks. Select all the sheets. (To do this, click on the tab of the first, then hold down SHIFT whilst clicking the tab of the last). Then, whatever you do to the visible sheet (such as setting the print area) will be applied to all. So, don't forget to remove the multiple sheet selection (click any intermediate sheet tab) before you carry on with other work! Stephen, When I tried that (xl2003) the Set Print Area option was greyed out. I think a macro needs to be used... Option Explicit Sub PrintAreaAllWkshts() Dim strPA As String, Sht As Worksheet On Error GoTo NOT_RANGE strPA = Selection.Address For Each Sht In ActiveWorkbook.Worksheets Sht.PageSetup.PrintArea = strPA Next Exit Sub NOT_RANGE: MsgBox "Select the Print Area Cells, then try again!" End Sub seems to work. Ken Johnson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Or for each ws in worksheets range("a1:b6").printout next -- Don Guillett Microsoft MVP Excel SalesAid Software wrote in message ups.com... I have an excel file with many sheets. I would like to do the same 'Page Setup' and 'Print Area -Set Print Area' for every page in the file. Is there a way to do this without having to do each sheet manually? Thanks. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Oct 26, 11:10 am, "Don Guillett" wrote:
Or for each ws in worksheets range("a1:b6").printout next -- I tried this. Unfortunately, this caused the range of the current sheet to be printed the number of times as there were sheets. How do I indicate the range for the current ws when iterating through the list? -Eric |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My booboo
for each ws in worksheets ws.range("a1:b6").printout next If the range changes with each ws you will need to use something else such as select case. What are the details? -- Don Guillett Microsoft MVP Excel SalesAid Software wrote in message oups.com... On Oct 26, 11:10 am, "Don Guillett" wrote: Or for each ws in worksheets range("a1:b6").printout next -- I tried this. Unfortunately, this caused the range of the current sheet to be printed the number of times as there were sheets. How do I indicate the range for the current ws when iterating through the list? -Eric |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Using VBA code you can set the same print range and rows to repeat at top on
each sheet in grouped sheets. For anyone interested in the code see this google search result with Dave Peterson and myself posting. The print area code is from Bob Flanagan. http://snipurl.com/106kz Gord Dibben MS Excel MVP On Fri, 26 Oct 2007 14:33:12 -0000, wrote: I have an excel file with many sheets. I would like to do the same 'Page Setup' and 'Print Area -Set Print Area' for every page in the file. Is there a way to do this without having to do each sheet manually? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting the print area in page set up to print 1 page wide by 2 pages tall | Excel Discussion (Misc queries) | |||
Print 1st Page Multiple Sheets in Same Workbook | Excel Discussion (Misc queries) | |||
Why I get gray area in sheet tab of page setup? can't resize area. | Excel Discussion (Misc queries) | |||
setting Page Setup on a workbook level | Excel Discussion (Misc queries) | |||
In Excel print area setup problem with 2 different computers with. | Setting up and Configuration of Excel |