Help with Macro to Change Font Color



Hello,



I'm looking for a macro that will search a Word document (I have Word 2003)
for a given character (in this case an asterisk). Once it finds the
character, I would like for that character and all the characters to the
left of it, until the first space to be a specific color. There could be
zero asterisks to hundreds of asterisks within a single document.



As an example, if this was in my document: "This is a test* and only a
test." I would like test* to be a specific color.



Any help would be appreciated.

James Walker, Jr.




.



Relevant Pages

  • Re: VBA macro for finding extended/special characters/symbols
    ... > Word document. ... However, if a symbol is inserted, it's character code ... > actual font of the symbol is. ... > return this count to the macro. ...
    (microsoft.public.word.vba.general)
  • Re: Regular expression for check that an entered filename is valid
    ... is valid in a file name -- asterisks, question marks, colons, tabs, line ... character itself, less-than and greater-than signs, double quotes and the ...
    (comp.lang.php)
  • XP Pro - logon password conceal character
    ... During XP login, the password entered is normally concealed by a series of ... asterisks. ... Something on my system changed this character to a rectangular ...
    (microsoft.public.windowsxp.newusers)
  • Re: help in my project
    ... Thank you Dave, I had noticed the asterisks as well and I had read ... somewhere in a post that it signified bold text. ... > escape character or just an HTML interpretation. ...
    (microsoft.public.excel)
  • Re: Bar codes
    ... The Code 3of9 system doesn't require any conversion code - it's a 1:1 character representation of a normal upper-case font, usually with asterisks as the start/end characters. ...
    (microsoft.public.mac.office.excel)

Quantcast