Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Everyone
Is it at all possible to insert pagebreaks in multiple places at the same time? The code below does not work. Range("A38,74").Select ActiveWindow.SelectedSheets.HPageBreaks.Add _ Befo=ActiveCell TIA Bob XL2002 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No, but you can do this:
Dim cell As Range For Each cell In Range("A38,A74") ActiveWindow.SelectedSheets.HPageBreaks.Add cell Next cell In article , "Robert Christie" wrote: Hi Everyone Is it at all possible to insert pagebreaks in multiple places at the same time? The code below does not work. Range("A38,74").Select ActiveWindow.SelectedSheets.HPageBreaks.Add _ Befo=ActiveCell TIA Bob XL2002 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi J.e.
Thankyou for your quick reply. I must try and get this old head of mine around the Dim' For's and next's of this VBA. Thanks again Bob C. -----Original Message----- No, but you can do this: Dim cell As Range For Each cell In Range("A38,A74") ActiveWindow.SelectedSheets.HPageBreaks.Add cell Next cell In article , "Robert Christie" wrote: Hi Everyone Is it at all possible to insert pagebreaks in multiple places at the same time? The code below does not work. Range("A38,74").Select ActiveWindow.SelectedSheets.HPageBreaks.Add _ Befo=ActiveCell TIA Bob XL2002 . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Intermittent Error - Method 'Add' of object 'HPageBreaks' failed | Excel Worksheet Functions | |||
Is there no one who uses PageBreaks? HPageBreaks? | Excel Worksheet Functions | |||
HPageBreaks.Add | Excel Worksheet Functions | |||
Can't set manual HPageBreaks | Excel Programming | |||
Can't set manual HPageBreaks | Excel Programming |