excelenergy
Board Regular
- Joined
- Jun 7, 2012
- Messages
- 142
Hey
I have added another dropdown box to a project containing clothing brands I'm working on. This time I'm trying to change the value of a cell, based on the selection in the drop down.
So similarly to another post I made where I wanted to changed the title of a chart based on the drop down, the goal here is to change the value of a cell based on the drop down selection. So I was thinking of one of two ways...
First is this:
Or
My post regarding changing the title of a chart based on an active X drop down is here, incase there is a way to combine both of these vba script or if anyone wanted to reference the other one as well:
https://www.mrexcel.com/forum/excel-questions/1052307-match-match-if.html
I have added another dropdown box to a project containing clothing brands I'm working on. This time I'm trying to change the value of a cell, based on the selection in the drop down.
So similarly to another post I made where I wanted to changed the title of a chart based on the drop down, the goal here is to change the value of a cell based on the drop down selection. So I was thinking of one of two ways...
First is this:
Code:
Private_Sub DropDown11_Change()
=VLookup(not sure how to reference a value of an active x dropdown,Sheet3!A:E,2,0)
Range("C17").Value = DropDown11.Value
End Sub
Or
Code:
Private Sub DropDown11_Change()
Dimdd As DropDown
Set dd = ActiveSheet
ActiveSheet.Cell("C17").Activate
ActiveCELL = dd.List(dd.ListIndex)
End Sub
My post regarding changing the title of a chart based on an active X drop down is here, incase there is a way to combine both of these vba script or if anyone wanted to reference the other one as well:
https://www.mrexcel.com/forum/excel-questions/1052307-match-match-if.html
Last edited: