Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What are the problems here?
The first gets an error on execution: "Unable to set the PrintArea property of the PageSetup class" 1). ActiveSheet.PageSetup.PrintArea = Range(Cells(LastRow - 24, 1), Cells(LastRow + 1, 12)) The second just doesn't work (doesn't set the PrintArea to the range in question). 2. Range(Cells(LastRow - 24, 1), Cells(LastRow + 1, 12)).Select ActiveSheet.PageSetup.PrintArea = ActiveCell.CurrentRegion.Address Can someone provide an answer to both questions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
PrintArea | Excel Programming | |||
PrintArea setting | Excel Programming | |||
PrintArea | Excel Programming | |||
PrintArea | Excel Programming | |||
PRINTAREA | Excel Programming |