hello
I am trying to edit a macro i recorded which inserts a page break immediately after what is pasted in the worksheet.
The thing is that I don't know how many rows are going to be inserted becuase they change but i need a page break right after on the next availablw row.
This is the code that got recorded
Is this quite simple as looking at how it's done it, looks impossible?
I am trying to edit a macro i recorded which inserts a page break immediately after what is pasted in the worksheet.
The thing is that I don't know how many rows are going to be inserted becuase they change but i need a page break right after on the next availablw row.
This is the code that got recorded
Code:
Sub Macro2()
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=18
Range("A248").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
End Sub
Is this quite simple as looking at how it's done it, looks impossible?