View Single Post
 
Old 04-15-2014, 05:19 AM
rsrasc rsrasc is offline Windows 7 64bit Office 2010 64bit
Competent Performer
 
Join Date: Mar 2014
Location: Germany
Posts: 148
rsrasc is on a distinguished road
Default Looking for Help to Create a Macro (Sort)

Hi all,

I have a document with a list of multiple choices with their answers (See sample below).


1. Under the NIA of the UCCA, let’s do the following:

a. Nothing

b. Do nothing

c. Do nothing nothing nothing

d. Do something


Answer (B) is correct. Under the NIA of the UCC….
Answer (A) is incorrect. Under the NIA of the UCCA…
Answer (C) is incorrect. Under the NIA of the UCCA…
Answer (D) is incorrect. Under the NIA of the UCCA…

As you can see the order of the answer choices sometimes (in my document) is not listed in the right order (a, b, c, and d)


What I'm looking for is a macro that will sort the answer choices automatically in the following order:

Answer (A) is incorrect. Under the NIA of the UCCA…
Answer (B) is correct. Under the NIA of the UCC….
Answer (C) is incorrect. Under the NIA of the UCCA…
Answer (D) is incorrect. Under the NIA of the UCCA…


Therefore, the final output will be something as follows (the question followed by the answer choices in alphabetical order):


1. Under the NIA of the UCCA, let’s do the following:

a. Nothing

b. Do nothing

c. Do nothing nothing nothing

d. Do something


Answer (A) is incorrect. Under the NIA of the UCCA…
Answer (B) is correct. Under the NIA of the UCC….
Answer (C) is incorrect. Under the NIA of the UCCA…
Answer (D) is incorrect. Under the NIA of the UCCA…

Your assistance is appreciated.

Thanks in advance for your great support.

rsrasc
Reply With Quote