Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Anchor / Shapes (Word XP)

    In the first page header of a document, I have 3 images, each of which is anchored to a paragraph in the header. Users sometimes delete the paragraphs, with the result tha the anchor gets moved automatically to another paragraph. I'd like to be able to count the paragraphs in the header, and if it's less than what I anticipate, add paragraphs to increase the count. Then I would like to anchor the shapes (which are named) to the appropriate paragraph. I get the impression that this is not something I can do using VBA. Am I correct, or can someone offer a suggestion on how to go about it? Thanks.
    Richard Barrett

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

    Re: Anchor / Shapes (Word XP)

    The Anchor property of a Shape is read-only. The way to move the anchor is to cut the shape to the clipboard, select the paragraph where you want the anchor, and paste the shape.

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Anchor / Shapes (Word XP)

    Thanks. That sounds like it will do the job.
    Richard

  4. #4
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Anchor / Shapes (Word XP)

    This was great. Thank you again.

    It seems this functions only with the Selection object, not as a Range. Is that correct, or have I missed something?

    Thanks,
    Richard

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

    Re: Anchor / Shapes (Word XP)

    When working with shapes in the header and footer, you usually have to use Selection (contrary to the general rule)

Posting Permissions

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