Avatar of Peter Chan
Peter Chan
Flag for Hong Kong asked on

Remove page break

Hi,
There is one page break between Column A and column B below. How to remove the page break?6a
Microsoft ExcelProgramming Languages-OtherMicrosoft Legacy OS

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
akb

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
matrix8086

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Professor J

run this in a module.

Sub test()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets

ws.Cells.PageBreak = xlPageBreakNone

Next ws
End Sub

Open in new window

Professor J

or if you want it automatic , when everytime excel opens then

Private Sub Workbook_Open()

Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets

ws.Cells.PageBreak = xlPageBreakNone

Next ws


End Sub

Open in new window

Rob Henson

If you put the file into Page Break Preview mode, the fixed page breaks will be a solid line and the variable breaks based on page size and print settings will be hashed lines.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23