VBA to automatically unhide columns based on a specific dropdown selection

AshKate

New Member
Joined
Apr 10, 2017
Messages
6
Hello!

I am in need of a VBA that automatically runs if a user on my worksheet chooses a specific dropdown value.

I would like Columns X and Y to automatically become visible only if a color code "Black" is selected from the dropdown in Column W. With all other values (Green, Blue, Purple, Orange, Yellow, Red) Columns X and Y can remain hidden as the information isn't relevant then.

I would greatly appreciate the help. I am slightly new to VBA and have spent hours looking for what I need but cannot seem to piece it all together.

Thank you,

Ashley
 
glad to help.....
I was concerned that by having as I described in a previous post, that the code would always fail !!.....:beerchug:
 
Upvote 0

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