insert image from custom ribbon into word doc RRS feed

  • Question

  • Hi All

    I am customising a word template file and have created a open XML tab that contains a gallery of Icons. from the users selection i would like the icon image inserted into the word document at a set size.  i can call office icons and place in a form but not as an image in the document with the following code.

    Sub OnAction(control As IRibbonControl, id As String, index As Integer)
        If (control.Tag = "large") Then
            id = Strings.Mid(id, 3)
        End If
        Dim form As New UserForm1
        Set form.Image1.Picture = Application.CommandBars.GetImageMso(id, 32, 32)

    End Sub

    Any ideas on if this is posible or not and how to?

    Wednesday, April 16, 2014 10:54 AM