Excel 2000 VBA - Set Print Range in dynamic range

  • Thread starter Thread starter sub_pop
  • Start date Start date
S

sub_pop

Thanks, Tom, the last one was perfect. Now I need to print that. Hav
tried the following:

Range("A1", Cells(rwIndex, 5)).Select
worked great to select teh Range but...

ActiveSheet.PageSetup.PrintArea = Range("A1", Cells(rwIndex, 5))
errors out and

ActiveSheet.PageSetup.PrintArea = RangeSelection doesn't error bu
doesn't work either.

Thanks,
Mar
 
Hi
try
ActiveSheet.PageSetup.PrintArea = Range("A1", Cells(rwIndex,
5)).address
 

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

Back
Top