Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2014, 07:57 AM
rohanrohith rohanrohith is offline Macro to search warning text style and replace the text color Windows 7 32bit Macro to search warning text style and replace the text color Office 2010 32bit
Novice
Macro to search warning text style and replace the text color
 
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 Macro to search warning text style and replace the text color Windows 7 64bit Macro to search warning text style and replace the text color Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,871
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
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

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 11-27-2014, 12:03 PM
Charles Kenyon Charles Kenyon is offline Macro to search warning text style and replace the text color Windows 7 64bit Macro to search warning text style and replace the text color Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,081
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I have the same question.
Reply With Quote
  #4  
Old 11-27-2014, 01:08 PM
macropod's Avatar
macropod macropod is offline Macro to search warning text style and replace the text color Windows 7 64bit Macro to search warning text style and replace the text color Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
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
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to search warning text style and replace the text color 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

Other Forums: Access Forums

All times are GMT -7. The time now is 05:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft