Finding and Inserting

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jen (anonymous_at_discussions.microsoft.com)
Date: 07/08/04


Date: Thu, 8 Jul 2004 07:56:32 -0700

Hi all. I want to create a macro that will look for words
in the word document that are in [brackets]. Then I want
a prompt to come up that asks for data to be entered to
replace the [brackets]. So for example see the following
sentence . . .

On behalf of Joe's Company, I am pleased to confirm your
acceptance of our offer of employment as an [insert
title].

I want a prompt to come up as ask "insert title". When
the user enters the title "Accountant", for example, the
sentence in the document would read

On behalf of Joe's Company, I am pleased to confirm your
acceptance of our offer of employment as an Accountant.



Relevant Pages

  • Re: getting word to prompt to save on Close
    ... I think the problem here is that the Word document isn't "dirty": ... the prompt to save works as intended. ... > newbie to Word Automation, am doing Document.Close, and have tried ...
    (microsoft.public.word.vba.beginners)
  • Re: Can I include include a constant in a constant array?
    ... Thank you very kindly for your prompt reply. ... It was indeed the square ... brackets as I was porting some code from "C"!!! ...
    (comp.lang.vhdl)
  • Re: Determine Length Of Mail Merge Field
    ... For example, you could delete the spaces and brackets, then use field maths in Word to parse the resulting mergefield and restore them - with brackets, non-breaking spaces and/or non-breaking hyphens. ... under 12 characters the letter looks okay, however if it is over 12 ... I have never tried this in a word document. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Number from xcel 03 does not appear exactly as is when merged
    ... > type all that stuff that you show in the brackets? ... In the Word document at the point where you need to insert the information. ... If you mean "in each cell in Excel" then no, ... the data source and choose the DDE option when it is offered. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Can I include include a constant in a constant array?
    ... Thank you very kindly for your prompt reply. ... It was indeed the square ... brackets as I was porting some code from "C"!!! ...
    (comp.lang.vhdl)