Snake Eyes
Board Regular
- Joined
- Dec 14, 2010
- Messages
- 103
- Office Version
- 365
- 2016
- Platform
- Windows
I have a worksheet that can be duplicated and renamed any number of times within the same workbook.
I've created a macro that runs other macros based on the value of one cell (AC2) in the sheet.
Cell AC2 is an in cell dropdown (data validation) with preset values.
This macro works when assigned to a button in the sheet.
When I manually select a value from the dropdown options in AC2, the macro runs as it should when I press the button.
I would like to automate this process by having the macro run whenever I change the value of AC2 by selecting another value in the dropdown and therefore eliminate the button press.
How do I do this?
I've done a little research and have found that these lines should help but they do nothing when I put them at the top of the module.
I'm also concerned that this code may apply only to the one sheet and I need this to be part of a template that, as I mentioned, could be copied and renamed any number of times.
Any assistance would be appreciated.
I've created a macro that runs other macros based on the value of one cell (AC2) in the sheet.
Cell AC2 is an in cell dropdown (data validation) with preset values.
This macro works when assigned to a button in the sheet.
When I manually select a value from the dropdown options in AC2, the macro runs as it should when I press the button.
I would like to automate this process by having the macro run whenever I change the value of AC2 by selecting another value in the dropdown and therefore eliminate the button press.
How do I do this?
I've done a little research and have found that these lines should help but they do nothing when I put them at the top of the module.
I'm also concerned that this code may apply only to the one sheet and I need this to be part of a template that, as I mentioned, could be copied and renamed any number of times.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim PlanOption As String
PlanOption = Range("AC2").Value
Any assistance would be appreciated.