LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
KGlennC
 
Posts: n/a
Default Macro (Print) - Calling Named Ranges

I want to develop Print Macros so as to automate selection and printing of
multiple named ranges within the same sheet. I'm stymied...

Question - How do I call a specific named range? Using the macro I developed
(see below), only the 1st cell in the named range prints.

Example= I have a Budget workbook with 5 sheets (2005-2009). Each sheet
has multiples schedules (Income Statement with detail schedules supprting
particular line items). I want to print all schedules at one time, thereby
enhancing efficiency. The attributes of the ranges may change during
developemnt of the workbook, so using absolute attributes are not feasible.

Here's a portion of my macro:

Sub PrintAll()
ActiveSheet.PageSetup.PrintArea = "Schedule1"
Selection.PrintOut Copies:=1, Collate:=True
....
End Sub

This macro works, but I don't want to use specific range attributes:

Sub PrintAll()
ActiveSheet.PageSetup.PrintArea = "$A$161:$E205"
Selection.PrintOut Copies:=1, Collate:=True
....
End Sub

[P.S. I am wanting to switch entirely to Excel from 123 (user since 1984),
but the main obstacle has always been automated print macros. Well, I'm now
close if I can solve this problem.]

Thanks.
 
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
Named Ranges Donna Excel Discussion (Misc queries) 3 February 1st 05 11:35 PM
Setting up a macro to print? Abi Excel Worksheet Functions 0 January 10th 05 08:09 PM
Named Ranges Gary T Excel Worksheet Functions 2 December 27th 04 02:28 AM
Viewing List of Named Ranges Graham Parkinson Excel Discussion (Misc queries) 2 December 3rd 04 01:30 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM


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