stirlingmw
Board Regular
- Joined
- Feb 18, 2013
- Messages
- 75
Good morning all
I have a worksheet "Quiz" which displays random questions taken from a question bank. These questions are annotated into column B4 onwards, based on the number of questions requested. I am trying to number these questions using VBA, but cannot find any code which seems to work.
I have left Column A bank when the questions are added to the worksheet, if any text is present in cell in column B i would like column A to show a sequential number from 1 to n dependant on the number questions generated, so if Text is present in B4, Cell A4 shows 1, B5 text is present, A5 show 2 etc. There will never be a gap in column B as all questions are annotated into the next available blank row.
TIA
Steve
I have a worksheet "Quiz" which displays random questions taken from a question bank. These questions are annotated into column B4 onwards, based on the number of questions requested. I am trying to number these questions using VBA, but cannot find any code which seems to work.
I have left Column A bank when the questions are added to the worksheet, if any text is present in cell in column B i would like column A to show a sequential number from 1 to n dependant on the number questions generated, so if Text is present in B4, Cell A4 shows 1, B5 text is present, A5 show 2 etc. There will never be a gap in column B as all questions are annotated into the next available blank row.
TIA
Steve