Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-27-2014, 07:57 AM
rohanrohith rohanrohith is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Nov 2014
Posts: 2
rohanrohith is on a distinguished road
Default Macro to search warning text style and replace the text color

Please help me for macro creation: In ms word 2007 i have pre-defined style ex: warning text, in the active document and it found change the font color to red.
Reply With Quote
  #2  
Old 11-27-2014, 11:50 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Windows 7 64bit Office 2013
Expert
 
Join Date: Aug 2011
Posts: 3,106
Stefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of lightStefan Blom is a glorious beacon of light
Default

Maybe I'm misunderstanding your question, but if you want to reformat the text using a certain style, why not just modify the style?
__________________
Stefan Blom
Microsoft Word MVP
Reply With Quote
  #3  
Old 11-27-2014, 12:03 PM
Charles Kenyon Charles Kenyon is online now Windows 7 64bit Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,692
Charles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of light
Default

I have the same question.
Reply With Quote
  #4  
Old 11-27-2014, 01:08 PM
macropod's Avatar
macropod macropod is online now Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,110
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Even if you don't want to change the Style, there's no need for a macro - a simple Find/Replace will do.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
Macro to find coloured text and replace with form-field/formtext containing that text tarktran Word VBA 1 11-26-2014 08:12 AM
search and replace a field containing text and numbers H28Sailor Word 6 09-11-2014 01:00 AM
Can't change color of text in table style ABode Word 6 12-03-2013 07:45 AM
how to search and replace BOLD text >> font color change? dylansmith Word 4 03-12-2013 09:51 PM


All times are GMT -7. The time now is 01:42 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft