High! Roger,
Ref: Question Bank Macro, dd.03-May-97, from: Roger Watson
RW> Am looking for a macro that will randomly select questions
RW> from a Word document and insertin a new document, plus select the
RW> appropriate answers from anther document and insert in a fourth
RW> document. Basically I want to produce exam papers plus solutions
RW> from a question bank. Anyone done anything similar before?
Nope, but it wouldn't be that hard:
-make an array the size of the number of questions to keep you from
having duplicate answers
-use int(rnd()*MaxAnswers) to pick a question
-check if not used already
-use ParagraphDown(n) to move to that paragraph
-use ParagraphDown and CharacterLeft (with selection on) to select the
paragraph
-copy
-go to window with exam paper
-paste at the end of the text
etc.
Good luck!
___ __ __
Happy programming, / | / /__/ /
___/ /| |/ ___ /
Jigal. /____/ |___/ /_/
--- Terminate 4.00/Pro
---------------
* Origin: Point 2 is a point too at Revolution Ballroom (2:281/721.2)
|