Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-15-2022, 07:35 AM
dyb dyb is offline Insert a picture from userform into bookmark in word document Windows 11 Insert a picture from userform into bookmark in word document Office 2019
Novice
Insert a picture from userform into bookmark in word document
 
Join Date: Feb 2022
Posts: 7
dyb is on a distinguished road
Question Insert a picture from userform into bookmark in word document


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.
Reply With Quote
 



Similar Threads
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
Insert a picture from userform into bookmark in word document Is there anyway I can insert an easy bookmark in word? BayhDole Word 2 07-21-2015 08:43 PM
Insert a picture from userform into bookmark in word document Moving Selected Items from a Multiselect Listbox on a userform to a bookmark in Word 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft