Sub MyInsertColPBs()
Dim lc As Long
Dim c As Long
' Find last column in row 1 with data
lc = Cells(1, Columns.Count).End(xlToLeft).Column
' Loop through all columns and insert vertical page breaks
If lc > 1 Then
For c = 2 To lc
ActiveWindow.SelectedSheets.VPageBreaks.Add Before:=Cells(1, c)
Next c
End If
End Sub