detect when a data validation drop down has been changed

cogswel__cogs

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

Do I use activecell or target?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
Ignore, got wrong window.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

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