Hi All,
I creating word macro for my personal use. I have below queries. Can some one help me this.
I have word document contains few key words in [] like below:
SQ01.In the past 30 days, have you participated in a market research study related to any of the following?
(Please select all that apply)
[RANDOMIZE]
- Target Temperature Management [THANK AND TERMINATE]
- Vascular Access
- Drug Excretion
- Pain Management
- Insulin Therapy
98. None of the above[EXCLUSIVE]
Below is my questions:
1) In above format I need to replace SQ01 into one question like <radio label="SQ01">questiontext</radio>
2) Then numbers list (1 to 5 and 98) should be convert into <row label="r1">list text</row>
3) If I find in below question (Please select all that apply) then it should be <comment></comment>
So above question result should be like below:
<radio label="SQ01">In the past 30 days, have you participated in a market research study related to any of the following?</radio>
<comment>(Please select all that apply)</comment>
<row label="r1">Target Temperature Management<row>
<row label="r2">Vascular Access<row>
<row label="r3">Drug Excretion<row>
<row label="r4">Pain Management<row>
<row label="r5">Insulin Therapy<row>
<row label="r98">None of the above<row>
I need to this in full word document, can some one help me on this.