View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Frankie[_2_] Frankie[_2_] is offline
external usenet poster
 
Posts: 2
Default SETTING PRINT AREA IN VBA

I'm a beginner in Excel VBA. I have come across problem
to set the selected print area as follows :

ActiveSheet.PageSetup.PrintArea = "Range(Activecell,
Activecell.End(xlDown))"

It seems VBA only accepts absolute address :

ActiveSheet.PageSetup.PrintArea = "$B$4:$H$16"


Please give me some clues for setting a relative reference
print area instead of an abosolute one.

Thanks.


Rgds,
Frankie