I am trying to shuffle the items in a numbered list in MS Word 2010. The background for this question is that my wife is an English teacher who makes her tests using Word. Whenever she makes a test she also makes a second version by changing the order of the items in the numbered lists.
I am looking to either:
- change the order of items in a numbered list that I select using the mouse, ie select the numbered list, push a button/shortcut and the list is shuffled or
- change the order of all numbered lists in the test, ie the macro looks for the start of a new numbered list, selects all items in the list, changes the order of the items and then moves over to the next numbered list.
All lists should keep the same formatting (ie start number) after using the code.
I tried for the first instance but did not succeed in determining the start and end line numbers of my selection.
Example:
Original:
===== Start: ========
Question 1 What answer is correct?
- Answer A
- Answer B
- Answer C
Question 2 What answer is correct?
- Answer D
- Answer E
- Answer F
Question 3 What answer is correct?
- Answer G
- Answer H
- Answer J
======End========
The macro should create this:
======Start========
Question 1 What answer is correct?
- Answer C
- Answer A
- Answer B
Question 2 What answer is correct?
- Answer F
- Answer E
- Answer D
Question 3 What answer is correct?
- Answer H
- Answer J
- Answer G
====End======
"I'm looking for a macro"
I would recommend a freelancing site, and you can pay someone a fair market price. SO is not a code writing service.Give me teh c0dez
is never on topic. Alternatively; please show us what you have tried, the relevant code and the specific issues you are having. Read up on How to create a Minimal, Complete, and Verifiable example and have a look at the help centre on here. Then edit your question and give all the necessary details. – RossC