Find + Replace using VBA

J

JB

Hi Folks,

I'm looking for an easy way to code a find and replace for character styles.
I'm trying to eliminate href without anchor styles in documents.

Any Suggestions??

J
 
A

Andrew Savikas

Hi J

The Find object can be a tricky beast. Try recording a macro while you manually perform the kind of Find/Replace (From Edit-> Replace). After you've recorded the macro, go to Tools->Macro->Macros, select the macro you just recorded, and press "Edit"

That should give you an idea of the code needed for your situation

HTH
Andrew Savika

----- JB" <johnnybhoy67"NOSPAM wrote: ----

Hi Folks

I'm looking for an easy way to code a find and replace for character styles
I'm trying to eliminate href without anchor styles in documents

Any Suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top