![]() |
#1
|
|||
|
|||
![]() I am a novice at vba but have created a userform to be used to insert customer data into bookmarks in a word template. All of the code inserting text from text boxes on the userform works fine but it doesn't work for the image. Instead of the image it uploads a string of numbers. The relevant part of the code is below: Dim Proposal As Range Set Proposal = ActiveDocument.Bookmarks("Proposal").Range Proposal = Me.Image1.Picture The bookmark name is Proposal which is where I want a JPG image (Image1) to be placed. The image has been uploaded to the userform via a command button and is visible on the userform. Any help to correct the code would be much appreciated. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to select a default value for a combo in a userform from value of bookmark in the word document | caracoder | Word VBA | 1 | 08-29-2021 04:19 AM |
![]() |
BayhDole | Word | 2 | 07-21-2015 08:43 PM |
![]() |
marksm33 | Word VBA | 3 | 01-15-2015 07:55 PM |
Insert an image to a document created by a userform? | jgoodrich | Word VBA | 0 | 10-22-2014 11:03 AM |
How Can you insert a live hosted picture- in a document? -How can it be done?-Help!! | nationsheet | Word | 0 | 05-15-2009 06:53 PM |