Hello Mr.Excel forum,
I'm doing the final exam for my mother, I have created the input sheet as below.
The table contain questions and 4 choices
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD="align: center"]Questions[/TD]
[TD="align: center"]Choice 1[/TD]
[TD="align: center"]Choice 2[/TD]
[TD="align: center"]Choice 3[/TD]
[TD="align: center"]Choice 4[/TD]
[/TR]
[TR]
[TD]What is animal ?[/TD]
[TD]Box[/TD]
[TD]Cat[/TD]
[TD]Man[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD]What is the meaning of dance ?[/TD]
[TD]Sleep[/TD]
[TD]Run[/TD]
[TD]Walk[/TD]
[TD]Move rhythmically to music[/TD]
[/TR]
</tbody>[/TABLE]
I want to create a macro to push them to the second sheet with following looks
1. Add the question number
2. 2 rows if all choices contain less than 5 characters
3. 4 rows if any choice contain over 5 characters
4. Add the choices letter "A/B/C/D" to them
it's should look like this.
[TABLE="class: grid, width: 271"]
<tbody>[TR]
[TD="align: right"]1[/TD]
[TD="colspan: 2"]What is animal ?[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[TD]Box[/TD]
[TD]B[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C[/TD]
[TD]Man[/TD]
[TD]D[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="colspan: 2"]What is the meaning of dance ?[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[TD]Sleep[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B[/TD]
[TD]Run[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C[/TD]
[TD]Walk[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]D[/TD]
[TD]Move rhythmically to music[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you in advance,
NopppH
I'm doing the final exam for my mother, I have created the input sheet as below.
The table contain questions and 4 choices
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD="align: center"]Questions[/TD]
[TD="align: center"]Choice 1[/TD]
[TD="align: center"]Choice 2[/TD]
[TD="align: center"]Choice 3[/TD]
[TD="align: center"]Choice 4[/TD]
[/TR]
[TR]
[TD]What is animal ?[/TD]
[TD]Box[/TD]
[TD]Cat[/TD]
[TD]Man[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD]What is the meaning of dance ?[/TD]
[TD]Sleep[/TD]
[TD]Run[/TD]
[TD]Walk[/TD]
[TD]Move rhythmically to music[/TD]
[/TR]
</tbody>[/TABLE]
I want to create a macro to push them to the second sheet with following looks
1. Add the question number
2. 2 rows if all choices contain less than 5 characters
3. 4 rows if any choice contain over 5 characters
4. Add the choices letter "A/B/C/D" to them
it's should look like this.
[TABLE="class: grid, width: 271"]
<tbody>[TR]
[TD="align: right"]1[/TD]
[TD="colspan: 2"]What is animal ?[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[TD]Box[/TD]
[TD]B[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C[/TD]
[TD]Man[/TD]
[TD]D[/TD]
[TD]Desk[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="colspan: 2"]What is the meaning of dance ?[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[TD]Sleep[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B[/TD]
[TD]Run[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]C[/TD]
[TD]Walk[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]D[/TD]
[TD]Move rhythmically to music[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you in advance,
NopppH