MJamison07
Technical User
Let me just say that I am not even in macro kindergarten. But with some help from some posts I read & with some macros I recorded, I managed to put together this macro. To my amazement, it worked! I make a selection from a drop down list in cell B1. While I still have B1 selected, I run the macro. It finds the selection in B1 in a column heading and then filters that column for non-blanks.
What I have not been able to do is make the macro run as soon as I make my selection in the drop down list in B1. Can you help me with that?
Thanks – MJ
Sub Macro5()
'
' Macro5 Macro
Cells.Find(What:=ActiveCell, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Cells.AutoFilter
Cells.AutoFilter Field:=ActiveCell.Column, Criteria1:="<>"
End Sub
What I have not been able to do is make the macro run as soon as I make my selection in the drop down list in B1. Can you help me with that?
Thanks – MJ
Sub Macro5()
'
' Macro5 Macro
Cells.Find(What:=ActiveCell, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Cells.AutoFilter
Cells.AutoFilter Field:=ActiveCell.Column, Criteria1:="<>"
End Sub