Problem solved with this code:
Sub Insert_Label()
‘ insert 12 columns and label
Dim myColumn As Long
Dim myCol As Long
' Find the phrase "This Year"
Cells.Find(What:="This Year", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
' Capture column where this resides
myColumn = ActiveCell.Column
' Insert 12 blank columns to the left of this column
Range(Cells(8, myColumn), Cells(8, myColumn + 11)).EntireColumn.Insert , CopyOrigin:=xlFormatFromLeftOrAbove
' Populate row 8 with month numbers
For myCol = 1 To 12
Cells(8, myColumn + myCol - 1) = Format(DateSerial(2000, myCol, 1), "mmmm")
Next myCol
End Sub
Now I just have to figure out how to have the month labels abbreviated (Jan, Feb, Mar) etc . ..
Bookmarks