set print area from selected range
- From: "Graham Whitehead" <gwhitehead77@xxxxxxxxxxx>
- Date: Wed, 12 Jul 2006 09:43:09 +0100
Hi, I have some code which selected a certain amount of columns depending on
whether they contain values or not. Once I have this range set and I select
it I want to set this as the print area. I am not quite sure how to do
this. for example I tried:
rngUnion.Select
Active***.PageSetup.PrintArea = ActiveCell.CurrentRegion.Address
But to no avail. Any help would be gratefully received.
.
- Follow-Ups:
- Re: set print area from selected range
- From: Ardus Petus
- Re: set print area from selected range
- Prev by Date: Excel "Web Query"
- Next by Date: Re: set print area from selected range
- Previous by thread: Excel "Web Query"
- Next by thread: Re: set print area from selected range
- Index(es):
Loading