Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Canton, Ohio, USA
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    remove text box in header (Word XP)

    I need a quick macro to remove a textbox in my header. We are using a letterhead template here with all the attorneys' names on the left side of the document which I had in a text box. Now they want to remove the text box, and when I go throught the steps while the macro recorder is running, it will not let me delete the textbox. Thanks in advance. I know you'll come through for me!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: remove text box in header (Word XP)

    Some questions:

    1) Is it the only text box in the header, or are there others too?
    2) Do the documents consist of a single section, or can there be multiple sections? If the latter, do they have the same header, or different headers?

  3. #3
    Lounger
    Join Date
    Jan 2001
    Location
    Canton, Ohio, USA
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: remove text box in header (Word XP)

    I was going to attach a copy of the template, but the file is too big to send. But no, there is only one textbox in the first-page header. It takes up just about the length of the paper on the left side and includes all the attorneys' names. But the first thing in the header is a two-line text centered and bold "
    CELEBRATING 50 YEARS SERVING OUR COMMUNITY
    1958-2008" and then the textbox on the left side.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: remove text box in header (Word XP)

    Does this macro do what you want?

    Sub RemoveTextBox()
    ActiveDocument.Sections(1).Headers(wdHeaderFooterP rimary).Shapes(1).Delete
    End Sub

  5. #5
    Lounger
    Join Date
    Jan 2001
    Location
    Canton, Ohio, USA
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: remove text box in header (Word XP)

    I love it!! Thank you so much! It works wonderful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •