Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default .PageSetup on multiple sheets in workbook

Due to the slowness encountered using the .PageSetup in Excel, I was
attempting to do a one-shot setup as opposed to doing a setup per page. The
macro code is only setting up the active sheet when multiple sheets are
selected. However, if I do it manually, it sets up all the sheets at once.
Is this a glitch with VBA or is there code to get it to work properly?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default .PageSetup on multiple sheets in workbook

I found that trying to set pagesetup properties on ganged sheets
sucked up every bit of memory, took a long time and the display
turned white. I quit trying to do that. <g

Just loop thru the ActiveWindow.SelectedSheets using a For / Next loop
and set the pagesetup properties for each sheet one at a time.
Make sure to turn off the display of pagebreaks on each sheet
before setting any pagesetup properties.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Steve"
wrote in message
Due to the slowness encountered using the .PageSetup in Excel, I was
attempting to do a one-shot setup as opposed to doing a setup per page. The
macro code is only setting up the active sheet when multiple sheets are
selected. However, if I do it manually, it sets up all the sheets at once.
Is this a glitch with VBA or is there code to get it to work properly?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default .PageSetup on multiple sheets in workbook

VBA doesn't support operations on grouped sheets for the most part. This
is a workaround posted by KeepItCool Set up a model sheet (the activesheet
for the group), then put this at the end.

Sheets(Array("Sheet1", "Sheet3")).Select
SendKeys "{enter}"
Application.Dialogs(xlDialogPageSetup).Show

--
Regards,
Tom Ogilvy

"Steve" wrote in message
...
Due to the slowness encountered using the .PageSetup in Excel, I was
attempting to do a one-shot setup as opposed to doing a setup per page.
The
macro code is only setting up the active sheet when multiple sheets are
selected. However, if I do it manually, it sets up all the sheets at
once.
Is this a glitch with VBA or is there code to get it to work properly?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default .PageSetup on multiple sheets in workbook

Reading these were helpful to me. An easy way if not done repetitively and
frequently is that if you keep your selected sheets active, you can run the
Page Setup properties one time and it will afftect only the active sheet, but
if you then reselect the Page Setup DB and pick OK, it will set those other
sheets to the same settings. It does run somewhat slow but you can comment
out those lines that you know haven't changed any and it speeds up
considerably.

HTH

owlnevada

"Tom Ogilvy" wrote:

VBA doesn't support operations on grouped sheets for the most part. This
is a workaround posted by KeepItCool Set up a model sheet (the activesheet
for the group), then put this at the end.

Sheets(Array("Sheet1", "Sheet3")).Select
SendKeys "{enter}"
Application.Dialogs(xlDialogPageSetup).Show

--
Regards,
Tom Ogilvy

"Steve" wrote in message
...
Due to the slowness encountered using the .PageSetup in Excel, I was
attempting to do a one-shot setup as opposed to doing a setup per page.
The
macro code is only setting up the active sheet when multiple sheets are
selected. However, if I do it manually, it sets up all the sheets at
once.
Is this a glitch with VBA or is there code to get it to work properly?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated multiple text files into multiple sheets in one workbook Dr Dan Excel Discussion (Misc queries) 14 November 4th 07 11:32 AM
Copying multiple sheets to new Workbook Ash Excel Discussion (Misc queries) 2 October 30th 07 04:51 PM
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA Amaxwell Excel Worksheet Functions 4 August 17th 06 06:23 AM
Setting PageSetup Properties in Multiple Worksheets Josh Sale Excel Programming 10 February 28th 06 06:23 PM
Use the same name on multiple sheets in same workbook Reds Excel Discussion (Misc queries) 3 January 2nd 06 09:58 PM


All times are GMT +1. The time now is 11:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"