Group:  Microsoft Word ยป microsoft.public.word.docmanagement
Thread: Deleted text using bookmark in Word

Geek News

Deleted text using bookmark in Word
michael.gardner[ at ]o2.co.uk 12/8/2008 10:09:10 AM
Aplologies if this has been posted in the wrong area.

I have a word document which has been set up with a vba userform, with
this I enter a customer policy number and it is set to collect their
data from other systems. This function is ok.

I want to add a checkbox (or something else if easier), so that when
checked it adds or deletes a specific paragraph in the letter using a
bookmark. I have recorded the macro using the bookmark to delete the
paragraph, but how do I tie this in using the code? There is already a
button that you click to gather the data and update the letter, what
do I need to do next?

Hopefully this makes some sense.

Thanks

Mike
RE: Deleted text using bookmark in Word
PJY 12/8/2008 2:11:01 PM
You can add the macro to the check box in the properties. Put your macro into
the run on exit option.

"michael.gardner[ at ]o2.co.uk" wrote:

[Quoted Text]
> Aplologies if this has been posted in the wrong area.
>
> I have a word document which has been set up with a vba userform, with
> this I enter a customer policy number and it is set to collect their
> data from other systems. This function is ok.
>
> I want to add a checkbox (or something else if easier), so that when
> checked it adds or deletes a specific paragraph in the letter using a
> bookmark. I have recorded the macro using the bookmark to delete the
> paragraph, but how do I tie this in using the code? There is already a
> button that you click to gather the data and update the letter, what
> do I need to do next?
>
> Hopefully this makes some sense.
>
> Thanks
>
> Mike
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net