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

What code do you use to select the print area of the active sheet?

i.e. something like

PrintArea.Select


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Select print area

mcphc wrote:
What code do you use to select the print area of the active sheet?


..PageSetup.PrintArea = "A1:B2"

--
HTH

/Sune
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Select print area

The print area is a range defined by the name "Print_Area". So if you record
a macro whilst selecting that from the Names combobox, you get :
Application.Goto Reference:="Print_Area"

or you can use
Range("Print_Area").Select

You should check for that name first or handle the error that will occur if
the print area is not defined.

NickHK

"mcphc" wrote in message
...
What code do you use to select the print area of the active sheet?

i.e. something like

PrintArea.Select




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Select print area

NickHK wrote:
The print area is a range defined by the name "Print_Area". So if you record
a macro whilst selecting that from the Names combobox, you get :
Application.Goto Reference:="Print_Area"

or you can use
Range("Print_Area").Select


{flashbulb-above-head} Oh, now I get the questions.

mcphc: Please disregard my post.

--


/Sune
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
Can Excel automatically select print area on non-blank cells? N.F. Jackson[_2_] Excel Discussion (Misc queries) 1 April 3rd 09 07:03 PM
How to end/up end/across to select print area? Kevryl Excel Discussion (Misc queries) 4 October 9th 06 11:53 PM
Create a print macro that would automatically select print area? wastedwings Excel Worksheet Functions 7 August 22nd 05 10:36 PM
Select Cells in Print Area Chris Shaw Excel Programming 2 July 11th 05 03:34 PM
Macro to select the print area Gavin[_3_] Excel Programming 5 July 29th 03 02:58 PM


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