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 / March 2006

Tip: Looking for answers? Try searching our database.

Word 2002 SP3 - change font color creates new style - breaking mac

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hank Roberts (at the office) - 28 Feb 2006 19:50 GMT
Help!

I had slowly put together macros that would take a tab delimited database
dump -- a list of names and codes and numbers -- off of our mainframe, and
turn it into a nicely formatted office phone directory.

I did this entirely with styles -- no direct formatting.  But I used
character styles that only changed font colors -- so I could find a unique
long string (containing for example a foreign city name and an eleven digit
number) and paint that green, then find a string of eleven green numbers and
break it up into four numbers, hyphen, three numbers, hyphen, four numbers.

This broke completely with Word 2002 --  Word 2002 creates a new named style
if I apply a character style that includes changing the font color of the
character.   So my subsequent searches don't find the characters, because
Word has changed their style name and my search doesn't know what they're now
called.

I suppose I should have used strikeouts or crawling ants or something
instead of colors.  Now, what to do ....???

Any suggestion welcome -- ideally some way to turn off this new feature in
Word 2002 and make it leave the style names the way I create them.

I'm not a macro expert; I did this slowly by guess and by gosh, got some
help from experts who aren't available now -- so I can't just rewrite the
whole macro.

Any help welcome.
Cindy M  -WordMVP- - 01 Mar 2006 10:40 GMT
Hi =?Utf-8?B?SGFuayBSb2JlcnRzIChhdCB0aGUgb2ZmaWNlKQ==?=,

> Word 2002 creates a new named style
> if I apply a character style that includes changing the font color of the
> character.   So my subsequent searches don't find the characters, because
> Word has changed their style name and my search doesn't know what they're now
> called.

this doesn't sound right... Can you give us an example of such a "named style"?
And show us the code that creates it, please, as well as detail how you do the
search.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Hank Roberts (at the office) - 07 Mar 2006 18:47 GMT
It's been a few months -- and the problem's gone!  The only thing that's
changed that I am aware of is a big bugfix for the "MacPac" macro set
(misnamed, this is Word 2002 -- but that MacPac stuff was very buggy).

Although we are very, very secure here - meaning us grunts in the trenches
have very little idea what's actually being done with the software -- my
guess is that this problem was a bug in the company's specially customized
version of Word (it's a customized SP3 release with MacPac addons and PCDocs
addons and what else all).

Anyhow.  After 18 months of hair tearing, the problem's gone away entirely.

I'm seeing normal Style names, with Font color -- rather than new styles
that included color names added onto the style names.

Arrrrrrrrgh.  

> Hi =?Utf-8?B?SGFuayBSb2JlcnRzIChhdCB0aGUgb2ZmaWNlKQ==?=,
>
[quoted text clipped - 15 lines]
> This reply is posted in the Newsgroup; please post any follow question or reply
> in the newsgroup and not by e-mail :-)
 
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.