legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,158
- Office Version
- 365
- Platform
- Windows
I have a spreadsheet in which users select from a drop-down list from cell A2 in order to display calculations in column B. I created the drop-down list using Data Validation and it works fine. What I would like to do is have a macro that hides certain columns depending on which item the user chooses from the drop-down list in cell A2?
For example, if in cell A2, the user chooses "GL" from the drop-down list, then columns A, C through Q are visible, while column B is hidden. If a user selects "Fund" from the drop down list, then all columns from A through Q should be visible.
I think title of the post should say Hide/Unhide rather than insert/remove. If Mod can fix that that would be great.
Can someone assist with this code.
Thanks.
For example, if in cell A2, the user chooses "GL" from the drop-down list, then columns A, C through Q are visible, while column B is hidden. If a user selects "Fund" from the drop down list, then all columns from A through Q should be visible.
I think title of the post should say Hide/Unhide rather than insert/remove. If Mod can fix that that would be great.
Can someone assist with this code.
Thanks.
Last edited: