Link to home
Start Free TrialLog in
Avatar of Matt Miller
Matt MillerFlag for United States of America

asked on

Trying to Execute Macro when dropdown changes in Excel

I'm trying to have a macro run once a dropdown list has changed values but it doesn't seem to be working.
 I've tried a couple of approaches with no luck.

Thanks,

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$B$1" Then

Range("B2").Value = ""

End If

End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
BTW what are you trying to achieve?
Avatar of Matt Miller

ASKER

Thank you very much.  I just wanted to blank the cell because I'm using a data validation indirect and the list is dependent.
Thank you very much.  I'm surprised I was missing something so obvious.
You're welcome Mattfmiller! Glad your issue is resolved. :)