ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Page Break (https://www.excelbanter.com/excel-programming/320816-page-break.html)

Adam

Page Break
 
I am trying to program in a page break before row c. It is really delaying
my program because I think that it takes a while to select a row. I would
like to execute a page break without having to select a row. Here is what I
have. Thank you very much

Rows(c).Select
ActiveWindow.SelectedSheets.HPageBreaks.Add Befo=ActiveCell

Sharad Naik

Page Break
 
With Workbooks("xyz.xls).Worksheets("SheetName")
.HPageBreaks.Add Befo= .Rows(c)
End With

"Adam" wrote in message
...
I am trying to program in a page break before row c. It is really delaying
my program because I think that it takes a while to select a row. I would
like to execute a page break without having to select a row. Here is what
I
have. Thank you very much

Rows(c).Select
ActiveWindow.SelectedSheets.HPageBreaks.Add Befo=ActiveCell




Tom Ogilvy

Page Break
 

ActiveSheet.HPageBreaks.Add Befo=ActiveSheet.Range("A3")


--
Regards,
Tom Ogilvy


"Adam" wrote in message
...
I am trying to program in a page break before row c. It is really

delaying
my program because I think that it takes a while to select a row. I would
like to execute a page break without having to select a row. Here is what

I
have. Thank you very much

Rows(c).Select
ActiveWindow.SelectedSheets.HPageBreaks.Add Befo=ActiveCell





All times are GMT +1. The time now is 10:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com