I am trying to call a simple macro based on a cell input.
In this case i want macro3 to run anytime a number between 1 and 12 is entered at cell "Q1". in this case i am selecting the month number at "q1" and instead of assigning the macro to a button i just want it to run when the number is entered.
Any suggestions, and thanks again always for the help.
Chris
Below is a partial copy of the macro
Sub Macro3()
'
' Macro3 Macro
Range("Q1").Select
If Range("q1") = 1 Then
Columns("AF:AQ").Select
Selection.EntireColumn.Hidden = False
Columns("Ag:Aq").Select
Selection.EntireColumn.Hidden = True
Range("q10").Select
End If
End Sub
In this case i want macro3 to run anytime a number between 1 and 12 is entered at cell "Q1". in this case i am selecting the month number at "q1" and instead of assigning the macro to a button i just want it to run when the number is entered.
Any suggestions, and thanks again always for the help.
Chris
Below is a partial copy of the macro
Sub Macro3()
'
' Macro3 Macro
Range("Q1").Select
If Range("q1") = 1 Then
Columns("AF:AQ").Select
Selection.EntireColumn.Hidden = False
Columns("Ag:Aq").Select
Selection.EntireColumn.Hidden = True
Range("q10").Select
End If
End Sub