autocorrect replace for all
I am new to word's autocorrect procedure.
I can set my autocorrect entry called LBL1 :
Appword.Autocorrect.Entries.AddRichText "LBL1", Appword.selection.range
This works only when i type LBL1 in the document myself, but wat i want
is following. I have an open document which contains several LBL1 texts.
Can i autocorrect all LBL1's through code in one go, instead of having to press enter or space behind every LBL1 myself??
Many thx for helping me out.
Re: autocorrect replace for all
This can be done using Word's find and replace by pressing Ctrl+F, then selecting the replace tab. If it has to be done via code, you can simply record a Macro of the above manual procedure.
Re: autocorrect replace for all
HUm, thing is the rangecontent contains text and images. So thats way i wanted to use autocorrect, i think a normal find and replace only replaces text and no images?!
Re: autocorrect replace for all
Find and repalce can also be used to replace graphics. Simply select "special" from the options at the bottom of the find and replace window. I have never used this so don't know if it will help, but it's perhaps worth a try.
Re: autocorrect replace for all
Thx for info, i did look into that.
You can find for a graphic
Word willl show a ^g in the find box and wel focus the first graphic it finds
, but thats that. replacing a graphic is not directly possible replace hasn't got the graphic option and surely i did not find a way tot find and replace text and praphics in one go. Probably Autocorrect isn't the way to go but i am looking into all posibilities.