Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Printing / October 2003

Tip: Looking for answers? Try searching our database.

Printing a named area

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lehigh@nni.com - 06 Oct 2003 13:48 GMT
Hi All:

I created a macro to print a certain area.
This area is named.
This area will get adjusted in length from time to time.

My problem is, when I created the macro I used the "name".
When I go back into the macro to edit mode, the area is shown as
absolute cell references.
There for, if I adjust the length of the work sheet, it will print the
same area every time.
Am I using the wrong syntax?

Thanks for your help

Tom Snyder
Paul B - 06 Oct 2003 16:12 GMT
Tom, see if this will work for you

Sub print_name_range()
'Prints the name range test
ActiveSheet.PageSetup.PrintArea = "test"
ActiveWindow.SelectedSheets.PrintOut
ActiveSheet.PageSetup.PrintArea = ""
End Sub

Signature

Paul B
Always backup your data before trying something new
Using Excel 97 & 2000
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **

> Hi All:
>
[quoted text clipped - 12 lines]
>
> Tom Snyder

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.