Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2014, 05:21 AM
QA_Compliance_Advisor QA_Compliance_Advisor is offline Word VBA Find Table Text Shading Colour and replace with another Windows 7 32bit Word VBA Find Table Text Shading Colour and replace with another Office 2010 32bit
Advanced Beginner
Word VBA Find Table Text Shading Colour and replace with another
 
Join Date: Jul 2014
Posts: 44
QA_Compliance_Advisor is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
If the table is in the body of the document, and if the background colour is as you indicate (Use ColorCop to sample the colour if necessary), then that should work. It changes the colour from a dark blue to a slightly lighter blue.



If the table is not in the body then you will have to tell the macro in which story range to look for the table(s).

all this is in te body text, none are in headers or footers or anywhere else.

and still the text colour won't change.
Reply With Quote
  #2  
Old 09-19-2014, 06:36 AM
gmayor's Avatar
gmayor gmayor is offline Word VBA Find Table Text Shading Colour and replace with another Windows 7 64bit Word VBA Find Table Text Shading Colour and replace with another Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Quote:
Originally Posted by QA_Compliance_Advisor View Post
and still the text colour won't change.
There is no command in your macro to set the font colour. If you want white text add

oCell.Range.Font.ColorIndex = wdWhite
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word VBA Find Table Text Shading Colour and replace with another Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
Find and Replace multiple table columns smakdown61 Word 1 08-28-2014 09:24 PM
Word VBA Find Table Text Shading Colour and replace with another Word VBA Macro to Find and Replace based on the Alt Text of an Image bennymc Word VBA 1 01-27-2014 04:23 PM
Find - Replace Macro using a table list mdw Word 0 08-01-2013 04:36 PM
Word VBA Find Table Text Shading Colour and replace with another Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

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


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