ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Page Breaks for Entire Work Book (https://www.excelbanter.com/excel-discussion-misc-queries/34978-page-breaks-entire-work-book.html)

Steve

Page Breaks for Entire Work Book
 
I have a 110 Worksheet Workbook and I want to set the same page breaks for
each page without manually doing every worksheet individually. Any help or
macros out there?

Thanks,

Steve

abcd

you always can use
Tools Macro rocord new macro

then do the job on one worksheet

the stop the recording and sse the vba code.
(this will help next time)


But today, and in your case, I suggest
ActiveWorkbook.Sheets.HPageBreaks.Add Befo=Rows(8)

one line
all the job done

(before row 8 in this example)

Steve

Thanks a million

"abcd" wrote:

you always can use
Tools Macro rocord new macro

then do the job on one worksheet

the stop the recording and sse the vba code.
(this will help next time)


But today, and in your case, I suggest
ActiveWorkbook.Sheets.HPageBreaks.Add Befo=Rows(8)

one line
all the job done

(before row 8 in this example)



All times are GMT +1. The time now is 07:09 AM.

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