Discussion:
Find and replace multiple words with multiple code numbers
(too old to reply)
r***@hotmail.com
2008-10-01 20:08:13 UTC
Permalink
I have a word file with over 99 pages. Each page has a client name on
it. I
would like to find each client name and print a code number at the top
of
the page that corresponds to that specific client. Maybe it could be
in the
page number or it could be anywhere in the upper left side of the
page. I
think a macro would work.

List of Names CODE NUMBER
Marcus Bowes 12
Norman Hilton 13
Nancy Bates 2
Lori Felts 5

Each page in the word document has a different name i.e. Marcus Bowes.
the
names are not formatted in any way. In the upper left hand side of the
corner
I would like the number 12 to appear. Or maybe at the top of the page.
This
would be a specific location of course.

Thanks for any help on this.
Jean-Guy Marcil
2008-10-02 18:00:01 UTC
Permalink
Post by r***@hotmail.com
I have a word file with over 99 pages. Each page has a client name on
it. I
would like to find each client name and print a code number at the top
of
the page that corresponds to that specific client. Maybe it could be
in the
page number or it could be anywhere in the upper left side of the
page. I
think a macro would work.
List of Names CODE NUMBER
Marcus Bowes 12
Norman Hilton 13
Nancy Bates 2
Lori Felts 5
Each page in the word document has a different name i.e. Marcus Bowes.
the
names are not formatted in any way. In the upper left hand side of the
corner
I would like the number 12 to appear. Or maybe at the top of the page.
This
would be a specific location of course.
How many names are we talking about here?
Would this be a static list using the same names each time you run the macro?

Meanwhile, for positioning the number, here is one way of doing it:
Type some number on a page.
Select the number you just typed.
Display the Forms Toolbar.
Apply a frame to your selected number.
In the Frame properties, make sure you use position vlaues that are absolute
in relation to the page, not the paragraph.
Create a style based on your selection.

So, later, when you insert the numbers, all you have to do is apply this
style to the inserted nuumber to automatically place them where you want.

Have you started working on a macro?
If so, post the code you have so far.
If not, well, I certainly recommend that you try first... At least, a macro
that will do one search.

Loading...