Pause for User Input

N

NeedAMacro

Word 2000 / Windows 95 at work (yuck!) and Word 2000 / XP
at home!!

I'm in desperate need of info on editing a macro to pause
for user input once the macro is run. For instance, in
transcribing for a physician who used WP, I set up a macro
to bring up the heading for "Name : " (it paused here to
allow me to type name) then when I hit the Enter key, it
brought up the next line with "Assessment Date: " and
paused there for my entry. I hit Enter key again and the
exam section appeared for me to type the dictation. Of
course I created the macro first then edited it by adding
the phrase - PauseKey(Enter!) after each line for which I
wanted a pause for user entry and resumption with new text
when I hit Enter key.
Is this do-able in Word 2000? This is our primary Word
Processor at home and at work and this is a much-needed
task.
Thanks in advance for any assistance,
Jen
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

You can either do such a thing with formfields as described in the following
series of articles

Please Fill Out This Form
Part 1: Create professional looking forms in Word
http://www.computorcompanion.com/LPMArticle.asp?ID=22

Part 2: Adding Automation to your Word forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=46

Part 3: Learn more VBA (macros) to automate your forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=119

Part 4: Use custom dialog boxes in your Word forms
http://www.computorcompanion.com/LPMArticle.asp?ID=127

Part 5: Connect your AutoForm to a database to save input time and keep
better records!
http://www.computorcompanion.com/LPMArticle.asp?ID=136

or create a userform which is a custom dialog that would have controls on it
for each piece of information.

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm




--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
N

NeedAMacro

Thanks so much - that is exactly what I needed! Valuable
information that I'll use again and again!
Jen
 
T

Tsu Dho Nimh

I had the same problem, where I had to replace that amazingly usefu
test input feature of WP, and this is the code:

Wherever you need input in the middle of some macro text, use this.

Dim strCiteInput As String
'gotta declare a variable

strCiteInput = InputBox(Prompt:="Input:")
If strCiteInput = "" Then Exit Sub
'if they cancel, you quit

Selection.TypeText Text:= strCiteInput
'otherwise you put whatever they typed into the place where the curso
is.
'you can do otgher things with the input if you want t
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top