Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to specify Print Area with a Range
I would like help with the syntax for specifying the Print Area from a Range
please. Set rng = appExcel.ActiveCell.Offset(rowOffset:=-2, columnOffset:=0) Set rngStart02 = Range(rng, rng.Offset((intSummaryLineCount + 9), (intConsCounted + 5))) rngStart02.Select ' just to see if the range is correct 'sht1.PageSetup.PrintArea = ? Regards |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to specify Print Area with a Range
Found the answer,
Set rng = appExcel.ActiveCell.Offset(rowOffset:=-2, columnOffset:=0) Set rngStart02 = Range(rng, rng.Offset((intSummaryLineCount + 9), (intConsCounted + 5))) rngStart02.Select ' just to see if the range is correct 'sht1.PageSetup.PrintArea = rngStart02.Address "Terry" wrote in message ... I would like help with the syntax for specifying the Print Area from a Range please. Set rng = appExcel.ActiveCell.Offset(rowOffset:=-2, columnOffset:=0) Set rngStart02 = Range(rng, rng.Offset((intSummaryLineCount + 9), (intConsCounted + 5))) rngStart02.Select ' just to see if the range is correct 'sht1.PageSetup.PrintArea = ? Regards |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Print Area as dynamic range? | Excel Worksheet Functions | |||
Set print area on variable range | Excel Programming | |||
Print area composed by more range | Excel Programming | |||
How to find Used Range and Print Area? | Excel Programming | |||
Print area/range | Excel Discussion (Misc queries) |