Advanced find and replace - Word XP

M

Melissa

I am using the wildcards feature in find and replace to find the last 6
digits of numbers over 1 million. - [1-9]{6}>

How would I go about telling the replace field to insert a period in the
front of the text, skipping over two numbers, trimm off the rest, insert a
space and then the word "million"?

For example:

Find 1684232 - ([1-9]{6}>)
Replace with 1.68 million
 
M

Melissa

I was using the recorder to record this with the find and replace feature,
but it is the replace text I am having trouble with.

Bob I said:
Tools, Macro, Record New macro
I am using the wildcards feature in find and replace to find the last 6
digits of numbers over 1 million. - [1-9]{6}>

How would I go about telling the replace field to insert a period in the
front of the text, skipping over two numbers, trimm off the rest, insert a
space and then the word "million"?

For example:

Find 1684232 - ([1-9]{6}>)
Replace with 1.68 million
 
A

Arnold Gao[MSFT]

Hi Melissa,

It seems that we may need to leverage VBA codes to accomplish this goal.

Please address the VBA related request in the developer newsgroups. The
developer newsgroups are located at:
http://msdn.microsoft.com/newsgroups/default.asp.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
A

Arnold Gao[MSFT]

Hi Melissa,

Just a supplement. :)

I did extensive research on it and found we can do it in this say:

Find: ([1-9])([0-9]{2})([0-9]{4})>

Replace with: \1.\2 million

Hope it helps.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top