Wildcard replacement of characters and style



  • 1. Printing Page # of total pages in section prints Page 1 of 1, Pag.
    I want to print Page 1 of (say) 4 where 4 is the total number of pages in the section. I am using a SectionPages field to give me the total number of pages in the section. It is fine on the screen but when I print the document it comes up with Page 1 of 1, Page 2 of 2, etc.
  • 2. mail merge document
    I have a mail merge document originally created in Word 97 that we have now opened and are using successfully in Word 2003. My question is, when I first open this document up, I get a dialog box telling me..."opening this document will run the following SQL command....."....and "data from the database will be placed in your document, do you wish to continue?" Is this just asking me if I do indeed want the data from the data source linked with the document? If so, does anyone know how I can turn this off, because I do want to keep the data linked and don't need to be told about it each time I open it up.
  • 3. how i do i do a global replace of pictures in word?
    I have a word document with 1500 instances of the same picture. I need to replace all 1500 with a new picture that is the exact same. Is there a global way to do this replacement?
  • 4. Problems with Word 2003 opening Document Template created in Word
    I am having a VERY frustrating problem with Word 2003. We have a word template to manage the format of word documents. The template was created in Word 2000. Some of these documents are 12 months or older. They have been revised many times and we maintain versions in Visual Source Safe. I am talking about thousands of document. We have had NO problems with this process with Office 2000. I am at Bank of America. We are in the process of testing Office 2003. We have come up with this really strange issue with Word 2003. When I open one of these documents in Word 2003 the base BODY style suddenly has bulleted paragraph as the default style making ALL paragraphs bulleted. I can change the BODY style to NOT bulleted and the document looks great. I save the document and close it. I then open the document again and the bullets are back. Anyone hear of such a thing? -- Jim Hansen

Wildcard replacement of characters and style

Postby 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

Postby Herb Tyson [MVP] » Thu, 02 Aug 2007 03:57:52 GMT

Try this, instead:

Find what:&^?

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

Postby 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 

Hans L

Re: Wildcard replacement of characters and style

Postby SGFucyBM » Fri, 03 Aug 2007 00:56:06 GMT

Hello again, Herb.

I had to do one change to your suggested method:

 Find what:&^?
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


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...


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?


3.Filtering words that has wildcard character.

4.Wildcard characters for instant search

5.Finding & Replacing Characters using wildcards


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:

MyHead1Cell BiologyHead1My
MyHead1Center for Neuroscience and Regeneration ResearchHead1My

It is my understanding that I need to use the following in the "Find
What" box:


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.


6. finding specific sequence of wildcard characters

7. Wildcards using [ ] characters

8. Finding & Replacing Characters using wildcards

Return to MS WORD


Who is online

Users browsing this forum: No registered users and 57 guest