• Changing Inline Shape Size (Word 2007)

    Author
    Topic
    #455832

    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?

    Viewing 0 reply threads
    Author
    Replies
    • #1136317

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

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

      • #1159101

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

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

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

    Viewing 0 reply threads
    Reply To: Changing Inline Shape Size (Word 2007)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: