I need a macro code which I can attach to a command button which will expand specific rows based on cell values.
My sheet has a series of questions. or each question, there are 4 possible answers in a drop down menu in column A.
If the answer has more than 4 characters in length, I need the rows immediately beneath to expand.
If the answer has less than 4 characters in length, I need the rows to stay hidden.
There is no answer with exactly 4 characters in length.
The range for this is from rows 6 to 276.
Any suggestions are HIGHLY appreciated for this!
EDIT:
It looks like some of my text didn't all get in to the original post...
For each question...
If the answer has more than 4 characters in length, I need the 3 rows immediately beneath...
My sheet has a series of questions. or each question, there are 4 possible answers in a drop down menu in column A.
If the answer has more than 4 characters in length, I need the rows immediately beneath to expand.
If the answer has less than 4 characters in length, I need the rows to stay hidden.
There is no answer with exactly 4 characters in length.
The range for this is from rows 6 to 276.
Any suggestions are HIGHLY appreciated for this!
EDIT:
It looks like some of my text didn't all get in to the original post...
For each question...
If the answer has more than 4 characters in length, I need the 3 rows immediately beneath...
Last edited by a moderator: