Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy PrintArea cells only

Status
Not open for further replies.

thomsons

Programmer
Dec 16, 2002
19
0
0
GB
Hi,

I'm trying to select the cells that have been setup in PrintArea to allow me to copy that range of cells only.

I'm able to get the PrintArea address but only as a string using the following code:-

Dim strPrintArea As String

strPrintArea = ActiveSheet.PageSetup.PrintArea

The output I get back is $AB$1:$A0$26

How can I use the data in this string to return and select a range.

Cheers,
ST
 
The print area is a named range (I think, though it isn't unique to a book just a sheet) and can be selected as such ie
Code:
Sub plot()
ActiveSheet.Range("Print_Area").Select
End Sub

& RYMB

;-) If a man says something and there are no women there to hear him, is he still wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top