Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Macros

I have a workbook with @40 tabs.

Each tab is 4 pages with each page representating a quarter. I want t
be able to print a specific quarter of each tab.

For example, if it is Q2 then I want to be able to click a button an
Q2 for each tab to print.

Any suggestions??

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Print Macros

Assume Q2 is in M1:Z50 on each page

for each sh in Workbooks.worksheets
sh.Range("M1:Z50").Printout
Next

--
Regards,
Tom Ogilvy

"tratliff " wrote in message
...
I have a workbook with @40 tabs.

Each tab is 4 pages with each page representating a quarter. I want to
be able to print a specific quarter of each tab.

For example, if it is Q2 then I want to be able to click a button and
Q2 for each tab to print.

Any suggestions???


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Macros

I tried the for each but got a Compile Error:

Method or data member not found.

Please help!!!

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Print Macros

Dim sh as Worksheet
for each sh in Workbooks("Myworkbook.xls").worksheets
sh.Range("M1:Z50").Printout
Next

my typo, sorry. Change Myworkbook.xls to reflect the name of the workbook
with the quarterly data.

--
Regards,
Tom Ogilvy


"tratliff " wrote in message
...
I tried the for each but got a Compile Error:

Method or data member not found.

Please help!!!!


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Macros

What if I don't want the range to print on EVERY worksheet..

--
Message posted from http://www.ExcelForum.com



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
macros for print hitesh Excel Discussion (Misc queries) 3 January 17th 10 04:23 PM
Print macros don't work on all printers dford Excel Discussion (Misc queries) 4 January 26th 07 02:08 PM
Set print area using macros SheriQuezon Excel Discussion (Misc queries) 0 December 6th 06 10:43 PM
Two Print Macros for One Worksheet heater Excel Discussion (Misc queries) 1 June 8th 06 05:36 PM
How do I set my printer to show macros when I print a worksheet? Criss Setting up and Configuration of Excel 2 April 23rd 06 07:20 PM


All times are GMT +1. The time now is 02:42 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"