Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pausing Word2000 Macro for User Text Input?

Status
Not open for further replies.

pkgraham

Programmer
Jul 13, 2000
6
US
Hi. I've been trying to set up a macro that writes a preset sentence, but pauses in the middle to allow user input without using the InputBox.

The end result should look like this: "Warranty Deed from ABC, Inc. to XYZ, Inc., dated 12/4/99, filed 1/5/2000, recorded in Deed Book 10324, page 132, aforesaid records."

For now, all fields, Grantor, Grantee, Dated, Filed, Book, and Page, just need to be strings with no specific number or date formatting.

The interaction should be something like:

Word Writes -- > "Warranty Deed from "

Word Stops, User Writes -- > "ABC, Inc."

User Presses Enter

Word Writes -- > " to "

Word Stops, User Writes -- > "XYZ, Inc."

User Presses Enter

Word Writes -- > ", dated "

etc, etc.

I have written a macro that uses InputBoxes and accepts all the fields first, then spits the whole thing out. We are working on moving from WordPerfect 6.0 (ouch) and it would be nice to recreate the general feel of the current macros that we use, where the macro stops and waits for input before continuing, without creating a popup form.

Please let me know a way to set up this Pause/Resume feature, or let me know specifically if it cannot be done.

Thanks,

Paul
 
We can't use forms because every report is different. There are over 30 different types of documents. They don't all appear in every report and they never fall in the same order. There are usually duplicates of certain types as well. Users need to be able to run the macros in any document they may have open
 
Hmm, I think I see what you're saying now. A regular form is where the whole page is locked except for the form fields. Is a user form the popup window that I can create that's like InputBox but has all the fields in one window?

Ultimately, the bottom line is that I'd like to avoid all popup boxes whatsoever. I'm just having trouble finding a pseudo-simple solution.

Paul
 
Simpler, probably:


The interaction should be something like:

Warranty Deed from (text formfield where bookmark is named CoName1) to (text formfield where bookmark is named CoName2) dated (text formfield formatted with Date mm/dd/yyyy)...

You've pretty much got two options:

Fill-in Forms:
User Forms:

Other than that, you're right. You have to use ASK fields, and they're a real PITA.

Anne Troy
Way cool stuff:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top