Re: MS WORD MACRO

Subject: Re: MS WORD MACRO
From: Karen Mayer <Karen_Mayer -dot- TOUCH_TECHNOLOGY -at- NOTES -dot- COMPUSERVE -dot- COM>
Date: Fri, 14 Jul 1995 18:57:18 EDT

>Goto WiederHolen 'goes back to reentry point before dialog box
>End If

Rather than Goto WiederHolen (the beginning), display your UserDialog again
at this point, within the IfThen statement. User input should remain.

True, but it costs a lot of lines of code. Using a variable to store the
string, then to display it the second+ time through is much more efficient.
InstallationDlg.Comment$ = userstring$ would cause the user's input to be
displayed as the default text. If you set userstring$ to "" before the
WiederHolen, and set userstring$ to InstallationDlg.Comment$ before looping
back, the default text for the comment field is blank the first time and
has user's input thereafter. Only takes 3 lines of code!

-- km


Previous by Author: Re: Word choice for scroll bar . . .
Next by Author: Re: TIEBREAKER NEEDED: What do you call this?
Previous by Thread: Re: MS WORD MACRO
Next by Thread: WORD: Amber or Yellow


What this post helpful? Share it with friends and colleagues:


Sponsored Ads