Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
setting print range
I know how to set a print range w/ the columns set and the rows varying, but
what about the other way around where I don't know the number of columns every time? this works for varying rows: varyingrows = 8 Sheets("testpage").PageSetup.PrintArea = "a1:j" & varyingrows I tried this for varying columns with no luck: varyingcolumns=10 'will change w/ every run Sheets("testpage").PageSetup.PrintArea = range(cells(1,1),cells(8,varyingcolumns) any thoughts? thanks, mike allen |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Setting print range with macro | Excel Programming | |||
Setting print range using VBA | Excel Programming | |||
Setting print range using VBA | Excel Programming | |||
Setting print range using VBA | Excel Programming | |||
Setting Print range | Excel Programming |