Good afternoon. I'm sure the syntax is straightforward but at the end of the week I'm a bit stumped.
I can determine the number of visible (not hidden) columns
but I'm just having a bit of trouble putting page breaks in realtive to the visible columns only.
This only puts page breaks in for the absolute column numbers. Any ideas?
Many thanks,
D€$
I can determine the number of visible (not hidden) columns
Code:
MyNumber = .Range("A1").Resize(1, EndCol).SpecialCells(xlCellTypeVisible).Count
Code:
.VPageBreaks.Add Cells(1, y + 4)
Many thanks,
D€$