Wildcard replacement of characters and style
by SGFucyBM » Thu, 02 Aug 2007 02:32:05 GMT
I am trying tthis with wildcards checked in Word 2000:
Find: (&?)
Style: tw4winInternal
Replace: /1
Style: Plain text
I find &F, &C etc without problems, but when I click Replace (or Replace
all), the style tw4winInternal is not replaced by Plain Text.
Am I doing something wrong? What can I do?
Hans L
Re: Wildcard replacement of characters and style
by Herb Tyson [MVP] » Thu, 02 Aug 2007 03:57:52 GMT
Try this, instead:
Find what:&^?
Style:tw4winInternal
Replace with:[leave empty]
Style: Plain text
Use wildcards: OFF
--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://www.**--****.com/
Web: http://www.**--****.com/
Re: Wildcard replacement of characters and style
by SGFucyBM » Thu, 02 Aug 2007 22:28:01 GMT
Herb, thanks. However, it seems as if tw4winInternal is locked. I have
tried to highlight and change in the style window, but it does not work
either.
Hans L
Re: Wildcard replacement of characters and style
by SGFucyBM » Fri, 03 Aug 2007 00:56:06 GMT
Hello again, Herb.
I had to do one change to your suggested method:
Find what:&^?
Style:tw4winInternal
Replace with:[leave empty]
Style: Default Paragraph Font (instead of Plain Test)
Then it worked (someone told me about this in a discussion list).
Hans L
Similar Threads:
1.Wildcard replacements and Track Changes
Hi,
I'm trying to run some wildcard replacements with "Track Changes" on (so I
can later go through the changes and accept/reject them).
Say I have the text "abc", and replace "(a)b(c)" with "\1B\2".
Without "Track Changes", I expect -- and get -- "aBc".
With "Track Changes", I get "acB" (!?!).
Seems to be a bug... and the view settings (original/final) don't seem to
make a difference.
(Tested in Word 2003 and 2007)
Is there a way around that bug? Some setting I've overlooked?
I have a long list of replacements, where I want to replace some character
that appears between two specific other characters (or strings) with
something else.
I guess I could do several replacements, say
-- search for "abc", apply some weird font formatting like "Shadow",
-- replace "b" (+ format "Shadow") with "B"
-- remove format "Shadow"
But I'm still hoping for a simpler work-around...
Regards,
Klaus
2.My character style has become a "paragraph and character" style
In Word 2003 I defined a character style. Now, somehow, it's changed to
style type = paragraph and character. And in the Modify Style dialogue, the
Style Type line is grayed-out, so I can't change it back to a character style.
What's happened? And how can I fix it?
Thanks.
3.Filtering words that has wildcard character.
4.Wildcard characters for instant search
5.Finding & Replacing Characters using wildcards
Hi,
I am trying to use the Find/Replace wildcard syntax and add Heading 1
styles to my text. I have turned For example I have the following
sample text in my document:
MyHead1AnthropologyHead1My
MyHead1Cell BiologyHead1My
MyHead1Center for Neuroscience and Regeneration ResearchHead1My
It is my understanding that I need to use the following in the "Find
What" box:
(MyHead1*Head1My^13)
And use the following in the "Replace With" box:
\1^p ((style "Heading 1"))
However, it doesn't apply the "Heading 1" style format instead I get:
MyHead1Anatomical PathologyHead1My
((style "Heading 1"))
Can someone explain what I need to fix to accomplish what I need?
Thanks in advance for any help you can offer.
-Greg
6. finding specific sequence of wildcard characters
7. Wildcards using [ ] characters
8. Finding & Replacing Characters using wildcards