Define Print Area using Variables

W

wfgfreedom

I am trying to define a print area such as :

'ActiveSheet.PageSetup.PrintArea = "$B$36:$S$57"

Except the area is not a constant (Columns are constant). I tried this
without success:

ActiveSheet.PageSetup.PrintArea = "B[" & FinalTableStart & "]:T[" &
FinalTableEnd & "]"

Is there a way to do this.

Frank
 
J

JE McGimpsey

One way:

ActiveSheet.PageSetup.PrintArea = "B" & FinalTableStart & ":T" &
FinalTableEnd
 
W

wfgfreedom

One way:

   ActiveSheet.PageSetup.PrintArea = "B" & FinalTableStart & ":T" &
FinalTableEnd




 I am trying to define a print area such as :
 'ActiveSheet.PageSetup.PrintArea = "$B$36:$S$57"
Except the area is not a constant (Columns are constant). I tried this
without success:
ActiveSheet.PageSetup.PrintArea = "B[" & FinalTableStart & "]:T[" &
FinalTableEnd & "]"
Is there a way to do this.
Frank- Hide quoted text -

- Show quoted text -

Thanks for your help.

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top