Doug - Thanks for the link and the sample. I think it gets me to a
point that is better than where I was before, which has been perform
multiple finding and replacing tasks. I assume (and hope) there
will
be a way to put this repetitive task into a macro and assign it to a
button.
:
You will have to do the manipulation in the data source.
Alternatively, after executing the mailmerge to a new document, do
a Wildcard replace in which you search for
([0-9]{2})-([0-9]{5})
and in the replace control you insert
\1-bk-\2
For an explanation of the above, see the article "Finding and
replacing characters using wildcards" at:
http://word.mvps.org/FAQs/General/UsingWildcards.htm
--
Please respond to the Newsgroup for the benefit of others who may
be interested. Questions sent directly to me will only be
answered on
a paid consulting basis.
Hope this helps,
Doug Robbins - Word MVP
Graham - Is it possible to "extract" the first two numbers and to
thereafter
do the same with the five-number string at the end? If I can do
that, then I
could easily put the "-bk-" into the merge form. Thanks.
:
If we are looking at a seven digit number, then
\# "00-bk-00000"
or
\# "##-bk-#####"
will work
However, I suspect this isn't a number, but text, and you can't
format text
with
number switches. You would have to derive the numbers in the data
file first. This would be simple enough in an Excel file.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Bob wrote:
I am merging a case number into Word 2000 that is initially in
the following format: ##-#####. I have been trying to figure
out how
I can format it in the merge process to the following:
##-bk-#####. Basically, I need to insert "bk-" after the first
dash between the two number groups. I tried to adapt the serial
number example on Graham Mayor's website, but I just don't have
enough known-how to figure this out, if it can be done.