Deleted text using bookmark in Word

  • Thread starter michael.gardner
  • Start date
M

michael.gardner

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
 
P

PJY

You can add the macro to the check box in the properties. Put your macro into
the run on exit option.
 

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