LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Apply Macro on Multiple Worksheets in a Workbook


When I output financial reports from the Financial Report Writer FRx t
Excel, report always come out in a messy format that I have to adjus
page format so each worksheet will be printed on 1 page in a readabl
format (each output file/workbook usually has 30 worksheets).

I have created a macro to do the formatting: adjust all margins t
0.25, make page portrait and scale to fit page to 1 wide by 1 tall.

But the macro can only be applied to the worksheet I selected. I'v
tried highlighting all worksheets and even included the highlight al
sheet action in the script, but the macro only works on the page I'
in.

Is there anyway I can apply a macro to all worksheets? A challeng
here is that the worksheet name in each workbook is different an
worksheets in each workbook could be different each period (I don'
always generate the same worksheets).

I have been manuall highlighting all worksheets to adjust page forma
for 30 reports each month. I'd really appreciate if you could help m
come up with a more effiencent way to do it. Thanks in advance!

Agne

--
Agne
-----------------------------------------------------------------------
Agnes's Profile: http://www.excelforum.com/member.php...fo&userid=1463
View this thread: http://www.excelforum.com/showthread.php?threadid=26261

 
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
Apply different color themes to worksheets withing a workbook kdarrow Excel Discussion (Misc queries) 2 August 26th 13 10:09 PM
How to apply macro across multiple worksheets within a workbook murkaboris Excel Discussion (Misc queries) 4 April 9th 09 01:24 AM
Combine worksheets in multiple workbook in one workbook with a macro Sam Commar Excel Discussion (Misc queries) 2 April 2nd 09 01:09 PM
Apply Macro to all worksheets in a workbook except one Carrie_Loos via OfficeKB.com Excel Discussion (Misc queries) 5 January 15th 09 10:03 PM
Excel should apply names in all worksheets of a workbook Softball Pete Excel Discussion (Misc queries) 1 January 23rd 06 02:42 PM


All times are GMT +1. The time now is 02:59 AM.

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"