svickers1972
New Member
- Joined
- Feb 14, 2012
- Messages
- 5
I am new to posting here, so please pardon any newbie statements or questions!
So, I have seen several recommendations for VBA code to Hide Rows with VB based on a cell value, but it seems that none are exactly what I am looking for, any help would be greatly appreciated.
On our spreadsheet in cell A7, A9, and A11 I have a drop down selection for the user to choose their view. Starting in Cell A13:S23 is for the first grouping (referencing from the A7 selection). A27:S88 is for the A7 Drop Down reference and A90:S282 is for the A11 drop down selection.
S:S has a If,then that is controlled by the drop down to yield 1 or 0...
What we are looking to do is hide any row that S=0 and show if S=1, also as a secondary hide if C13:C282 = "" then hide the row as well. We are looking to perform these tasks on selection of each A7, A9 and A11 without manually having the user to call the macro.
To add to the code after each selection we would like it to also sort each section of the selected fields by 'C' A13:S23, A27:S88, A90:S282 would be individually sorted by the value in 'C'.
Thank you for any assistance that can be provided!
So, I have seen several recommendations for VBA code to Hide Rows with VB based on a cell value, but it seems that none are exactly what I am looking for, any help would be greatly appreciated.
On our spreadsheet in cell A7, A9, and A11 I have a drop down selection for the user to choose their view. Starting in Cell A13:S23 is for the first grouping (referencing from the A7 selection). A27:S88 is for the A7 Drop Down reference and A90:S282 is for the A11 drop down selection.
S:S has a If,then that is controlled by the drop down to yield 1 or 0...
What we are looking to do is hide any row that S=0 and show if S=1, also as a secondary hide if C13:C282 = "" then hide the row as well. We are looking to perform these tasks on selection of each A7, A9 and A11 without manually having the user to call the macro.
To add to the code after each selection we would like it to also sort each section of the selected fields by 'C' A13:S23, A27:S88, A90:S282 would be individually sorted by the value in 'C'.
Thank you for any assistance that can be provided!
Last edited: