How do I write a macro to find, select, and then delete a Section.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a document in Word that is a form to fill out with instructions. I've
placed all the instructions in the same section, separate from the form. I
want a macro that will go bact to the Instructions section, and then delete
that section, so what is left is the one page form.

anyone write a macro like that?

Thanks!
 
Hi nw_nick

Try something like this:
ActiveDocument.Sections(1).Range.Delete

For testing, make a backup of your document before you begin!

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
Shauna:
You're a genius! That is exactly what I needed and it works perfectly!

Thank you very much
Nick
 

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

Back
Top