Hi folks
Yet again I show my ignorance. I've got a combo box with the months of the year linked to cell A30.
Why, in the code below does the code work perfectly for August, but nothing happens for May:
Private Sub ComboBox1_Change()
If Range("A30") = "August" Then
Columns("I:I").Select
Selection.Insert Shift:=xlToRight
Range("I4").Select
ActiveCell.FormulaR1C1 = "August"
Else
If Range("A30") = May Then
Columns("I:I").Select
Selection.Insert Shift:=xlToRight
Range("I4").Select
ActiveCell.FormulaR1C1 = "May"
End If
End If
End Sub
Thanks
Steve
Bookmarks