PDA

View Full Version : Word VBA - Paste a word to Autocorrect dialog box



akuini
03-13-2012, 07:43 PM
Word VBA - Paste a word to Autocorrect dialog box

I need help
Default behavior:
I select a word in a document then open Autocorrect dialog box. The word I selected automatically appears in the 'With textbox' and the 'Replace textbox' is empty.

What I need is:
the word automatically appears in the 'Replace textbox' and the 'With textbox' is empty.

Is there a way to do that using Word vba macro, maybe by paste the word to the 'Replace textbox'?

I only manage to open the Autocorrect dialog box, using:

Dialogs(wdDialogToolsAutoCorrect).Show

then I don't know what to do.