|If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.|
||Thread Tools||Display Modes|
Macro to edit test questions
Hi, I'm using a macro to edit a lot of test questions, Iím just showing two of them here as an example.
1- Paul found it much easier to use a pencil for taking notes
as he could .......... mistakes, which he made plenty of, very easily.
A) type B) erase C) deter
D) furnish E) release
2- You have to watch that market trader very ...........;
otherwise, he will sneakily throw a few rotten oranges in
amongst the good ones.
A) closely B) secretly C) violently
D) daringly E) placidly
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToFirst
.Text = "A)"
.Forward = True
'.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
Do While Selection.Find.Execute
If Selection.Find.Found = True Then
Selection.MoveUp Unit:=wdParagraph, Count:=3, Extend:=wdExtend
Selection.Font.Bold = wdToggle
Selection.MoveDown Unit:=wdParagraph, Count:=2
Now, with this macro, I can turn the font of the question into bold, but the problem is that the macro above can not apply to every question because the number of lines may be different in every question so the values in the micro above (Count:=3 and Count:=2) should be changed or is there any universal way for this?
I want that macro to turn the question into a SINGLE PARAGRAPH, for which Iím currently using a separate macro:
' testnew Makro
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.TypeText Text:=" "
I want to merge the two macros, if possible.
Sorry for the long post, and thank you for your attention
|Thread||Thread Starter||Forum||Replies||Last Post|
|Questions to expect on Word assessment test||Richard Champlin||Microsoft Word Help||1||March 19th 08 03:17 PM|
|change test questions to reverse order||Dave R.||Microsoft Word Help||5||August 27th 06 09:11 AM|
|scramble the questions,on a test and create another version||torrence||Microsoft Word Help||1||March 6th 06 11:13 PM|
|Sequentially numbering multiple-choice test questions?||tgocean||Microsoft Word Help||4||September 20th 05 05:37 AM|
|Quick way to rearrange test questions in Word||lkr6104r||Page Layout||5||April 11th 05 12:29 PM|