Could I use a Macro in this situation?

R

ryan.clair

I have a 200+ page document I pulled from the Internet. The website
used a format of {i} {/i} to italicize sentences. I was hoping to write
up something that could automatically find {i} and italicize everything
after it until {/i} comes up.

Please let me know if a Macro could do this or if there was another
alternative. I have some experience with VBA in Access but a KISS
solution is preferred.
 
G

Greg Maxey

You don't need a macro. Edit>Replace>More User Wildcards.

Put: (\{i\})(*)(\{/i\}) in the find what field
Put: \2 in the replace with field
Press Format>Font>Italic.
Replace All
 
R

ryan.clair

Thats... awsome. Did not know that. Thanks!


Greg said:
You don't need a macro. Edit>Replace>More User Wildcards.

Put: (\{i\})(*)(\{/i\}) in the find what field
Put: \2 in the replace with field
Press Format>Font>Italic.
Replace All
 

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