Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Christchurch, New Zealand
    Posts
    250
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Changing Inline Shape Size (Word 2007)

    When I insert a picture using the InsertPicture dialog the picture comes through as a selected inline shape - which is what I want. I want to set a specific height for the picture. The macro recorder won't record setting the height for the picture, so I can't work out what I need to do to set it.

    I have a text box, in which are two tables, and the picture is inserted into a cell in the first table. This sounds complicated, but it is the only way I have been able to create a coverpage quick part, that can be plain (no background colour) or coloured.

    Does anyone have any ideas?

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

    Re: Changing Inline Shape Size (Word 2007)

    If the inline shape is selected, you should be able to do something like this:

    Selection.InlineShapes(1).Height = Application.InchesToPoints(2.5)

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Christchurch, New Zealand
    Posts
    250
    Thanks
    1
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='746580' date='07-Dec-2008 16:30']If the inline shape is selected, you should be able to do something like this:

    Selection.InlineShapes(1).Height = Application.InchesToPoints(2.5)[/quote]




    Thanks Hans, I had to add Selection.MoveLeft Unit:=wdCharacter, count:=1, Extend:=wdExtend to select the shape and then the code worked beautifully.

Posting Permissions

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