Microsoft KB Archive/69938

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:58, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to Turn Off EditReplace Confirm in WordBASIC

PSS ID Number: Q69938 Article last modified on 02-17-1993

1.00 1.10 1.10a WINDOWS

Summary: It is possible to have the Edit Replace dialog box come up with confirm not selected by default. To do this, you must modify the EditReplace macro.

More Information: To have Confirm set to off by default in the EditReplace dialog box, modify the EditReplace macro as follows.

The Modified EditReplace Macro

Sub MAIN On Error Goto CancelPushed Add this line Dim dlg As EditReplace GetCurValues dlg Add this line dlg.Confirm = 0 Add this line Dialog dlg Super EditReplace dlg CancelPushed: Add this line Err = 0 Add this line End Sub

Reference(s): “Microsoft Word for Windows Technical Reference,” page 43.

Additional reference words: w4wmacro