Replacement / Fields

  • Thread starter Michael Vardinghus
  • Start date
M

Michael Vardinghus

Can't I use the replacement object to insert a field code instead of text ?

Want' to find a specific phrase and then replace this with a document
variable.

Know how to replace text and know how to insert a field using vba - but I
don't know how to combine these too

/Michael V.
 
P

Peter Jamieson

As far as I know the only way to do this is to copy the field(s) you want
tot he clipboard and specify ^c as the replacement text. There is no way to
"encode" a field in the replacement text using e.g. ^19 and ^21 for the
start and end field braces.

Peter Jamieson
 
M

Michael Vardinghus

Sorry for the double post and thanx for the answer

In the mean time I found a link on the internet confirming your conclusion.

Now I'm trying to figure out how to put something into the clipboard
automatically....
 

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