TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: ROGER WATSON
from: JIGAL VAN HEMERT
date: 1997-05-10 20:10:00
subject: Question Bank Macro

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.