detect when a data validation drop down has been changed

cogswel__cogs

Board Regular
Joined
Jan 3, 2018
Messages
180
How do i detect when a data valiadation drop down selected and changed has been changed.

Do I use activecell or target?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Something like
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   If Intersect(Target, Cells.SpecialCells(xlCellTypeAllValidation)) Is Nothing Then Exit Sub
   MsgBox Target.Value & vbLf & Target.Address
End Sub
 
Upvote 0
Little off topic.
I am using this for a summary pages of departmental tabs.
I am using Indirect to pull of the tabs and then allowing user to dropdown and pull certain info. All the tabs are the same so user can sellect "Gross sales" and it will pull all the sales. Want to know when the column is changed because depending on that they request macro will change formating for that column to (%,$,#) .
I have to do this with VBA, I can't change number formatting with conditional formatting can I?
 
Upvote 0
I can't change number formatting with conditional formatting can I?
Yes you can. In Cf click Format & then Number & choose what you want.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top