Office & Productivity Software forum

General discussion

Can't pause a macro in MS Word 2002

by mreiff / April 25, 2008 5:24 AM PDT

Why doesn't my macro pause where I inserted a pause when I play it back?

Discussion is locked
You are posting a reply to: Can't pause a macro in MS Word 2002
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Can't pause a macro in MS Word 2002
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
(NT) Can you show the code?
by Kees Bakker / April 25, 2008 5:25 AM PDT
Collapse -
pausing macros (MS Word 2002)
by mreiff / April 25, 2008 7:34 AM PDT
In reply to: Can you show the code?

When I play back the macro and display the codes, there is no pause code, simply a dot like it was just a space.

Collapse -
Insert the code for the pause then.
by Kees Bakker / April 26, 2008 5:31 AM PDT
Collapse -
PAUSING MACROS IN WORD 2002
by mreiff / April 27, 2008 12:42 AM PDT

I clicked the pause button where I want it to pause so I can insert text, and then clicked it again to continue typing my template.

Collapse -
Re: pausing macro's.
by Kees Bakker / April 27, 2008 1:01 AM PDT

Pausing the recording of a macro just means that it doesn't record what you type while it's pausing. It pauses the recording, it doesn't pause the execution. See http://wordprocessing.about.com/od/workingwithmacro1/l/blmacrorecord.htm

I get the impression that what you want is more like described in http://techrepublic.com.com/5208-11192-0.html?forumID=52&threadID=199959&messageID=2086003
Unluckily, there's no answer there, except the very general advice: display an input box and use what the user types. That seems a good advice.

The alternative would be to use autocorrect. Say you want to do what's described in the second link. Then set up "ac1" to autocorrect to "your next appointment is", "ac2" to autocorrect to ", so you will need to bring your payment of" and "ac3" to autocorrect to "This will be due at the time of your arrival."
Then type ac1 Februari,3 ac2 USD 12.50 ac3 to get the full text.

Hope this helps.


Kees

Collapse -
pausing macros
by mreiff / April 27, 2008 10:08 AM PDT
In reply to: Re: pausing macro's.

You're right. I want to pause the execution of a macro so I can input variable information. I could do it in Word Perfect the way I tried to do it in Word and with Word it just lays out the whole macro without letting me input the variable information. Do you know if it's possible to do this in newer versions of Word?

Collapse -
Sorry, I don't have Office 2007.
by Kees Bakker / April 27, 2008 5:08 PM PDT
In reply to: pausing macros

All I can tell you: it still supports VBA (and that hasn't changed), but you can also program extensions in Visual Studio, using a product called VSTO (Visual Studio Tools for Office), that supports both Visual Basic and Visual C#.

Might need some study, books and courses.

Kees

Collapse -
Macros
by mreiff / April 28, 2008 12:10 AM PDT

Thanks for your help. I appreciate it.

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?