VBA help

John5

New Member
Joined
Jan 8, 2016
Messages
31
I have a 3 work sheet workbook
Sheet2 is Dropdown
Sheet3 is Questions
Sheet6 is Switch config

Im using this to create config for a network device by answering question on the questions sheet. I am building it so going to the other sheets wont be needed. The issue I have is I need to run Switch config macros when a change event happens on Questions. The Macros are used hide cells that are not needed based on questions. This part works but I have to go to that sheet to make a change for the macros to run. This is of course not what I want. I would prefer it to be auto so a change on Questions sheet runs macros on Switch config.

The other option is to start Switch config macros after Questions macro ends. Either way it runs the Switch config macros based on change event on Questions sheet.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Found the resolution. I moved all Macro's over to the Question sheet that runs it every time something is changed and just pointed the commands to the other sheets. Using a helper formula to achieve my intended results.

Example

Worksheets("Switch config").Rows("44:49").Hidden = (Worksheets("Dropdown").Range("A10").Value = "No")
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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