Reply
 
Thread Tools Display Modes
  #1   Report Post  
Haydon
 
Posts: n/a
Default Set up find/replace in a macro

How do I set up a find/replace function in a macro, possibly assigned to a
command button, which can take changeable information from a set place and
replace it in other parts of the document?

For example, I create a box where someone can enter their name, eg. 'John'.
They then click the command button and it automatically replaces the word
'name', which I've set up in various places throughout the document, with
the word 'John'?
  #2   Report Post  
garfield-n-odie
 
Posts: n/a
Default

See http://gregmaxey.mvps.org/Repeating_Data.htm .

Haydon wrote:

How do I set up a find/replace function in a macro, possibly assigned to a
command button, which can take changeable information from a set place and
replace it in other parts of the document?

For example, I create a box where someone can enter their name, eg. 'John'.
They then click the command button and it automatically replaces the word
'name', which I've set up in various places throughout the document, with
the word 'John'?


  #3   Report Post  
Jezebel
 
Posts: n/a
Default

Instead of using Find and Replace for this (plus the overhead of maintaining
a macro), it would be simpler to bookmark the place where you type 'John'
and use REF fields where you have 'name'. Or enter John as a document
property on File Properties Custom and use DocProperty fields where you
want the name to appear in the document.



"Haydon" wrote in message
...
How do I set up a find/replace function in a macro, possibly assigned to a
command button, which can take changeable information from a set place and
replace it in other parts of the document?

For example, I create a box where someone can enter their name, eg.
'John'.
They then click the command button and it automatically replaces the word
'name', which I've set up in various places throughout the document,
with
the word 'John'?



  #4   Report Post  
Haydon
 
Posts: n/a
Default

That is excellent. Just what i needed. Thanks.

"garfield-n-odie" wrote:

See http://gregmaxey.mvps.org/Repeating_Data.htm .

Haydon wrote:

How do I set up a find/replace function in a macro, possibly assigned to a
command button, which can take changeable information from a set place and
replace it in other parts of the document?

For example, I create a box where someone can enter their name, eg. 'John'.
They then click the command button and it automatically replaces the word
'name', which I've set up in various places throughout the document, with
the word 'John'?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
Macro Button Won't Stay on Toolbar caleb Microsoft Word Help 2 June 14th 05 11:59 PM
Possible bug when recording a Word Macro Raven95 Microsoft Word Help 4 April 30th 05 09:49 PM
Macro to Find/Replace (with MailMerge Field)? aiyou Mailmerge 1 December 8th 04 07:39 AM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 12:31 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"