Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
heater
 
Posts: n/a
Default Two Print Macros for One Worksheet

I need to print two versions of one spreadsheet. One version needs to print
A1:M98. The other version needs to print A1:Z132. I have the following
macro for A1:M98 -
Sub Print_1()
'
' Print_1 Macro
' ActiveSheet.PageSetup.PrintArea = "$A$1:$m$98"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Range("A1:m98").Select
End Sub

Can I add another button to print A1:Z132, so I do not have to re-set the
print area every time?
  #2   Report Post  
Posted to microsoft.public.excel.misc
heater
 
Posts: n/a
Default Two Print Macros for One Worksheet

I got it - I just added another macro Sub Print_2 and changed the parameters.

"heater" wrote:

I need to print two versions of one spreadsheet. One version needs to print
A1:M98. The other version needs to print A1:Z132. I have the following
macro for A1:M98 -
Sub Print_1()
'
' Print_1 Macro
' ActiveSheet.PageSetup.PrintArea = "$A$1:$m$98"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Range("A1:m98").Select
End Sub

Can I add another button to print A1:Z132, so I do not have to re-set the
print area every time?

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
Protecting a worksheet / workbook with macros WLMPilot Excel Discussion (Misc queries) 2 May 30th 06 04:35 PM
Different print page setups on one worksheet? tad Excel Worksheet Functions 1 January 11th 06 05:44 PM
How do I print a list of worksheet tab names in a workbook Clif Excel Worksheet Functions 3 March 2nd 05 09:38 PM
How to print a worksheet but number the pages by workbook Frank Clayton Excel Discussion (Misc queries) 2 January 10th 05 10:52 PM
How to print invoices for each advertiser from Excel worksheet Fred Excel Worksheet Functions 1 December 20th 04 09:08 AM


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

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

About Us

"It's about Microsoft Excel"