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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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