Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Could I use a Macro in this situation?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ryan.clair@gmail.com - 08 Aug 2006 19:48 GMT
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.
Greg Maxey - 08 Aug 2006 19:56 GMT
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

> 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
[quoted text clipped - 4 lines]
> alternative. I have some experience with VBA in Access but a KISS
> solution is preferred.
ryan.clair@gmail.com - 09 Aug 2006 18:43 GMT
Thats... awsome. Did not know that. Thanks!

> You don't need a macro.  Edit>Replace>More User Wildcards.
>
[quoted text clipped - 11 lines]
> > alternative. I have some experience with VBA in Access but a KISS
> > solution is preferred.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.