Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-30-2019, 08:01 AM
gmaxey gmaxey is offline How to get image from bookmark? Windows 10 How to get image from bookmark? Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

You can do it using the formattedtext method:

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oDoc1 As Document, oDoc2 As Document
  Set oDoc1 = Documents(1)
  Set oDoc2 = Documents(2)
  oDoc1.Bookmarks("TargetBMName").Range.FormattedText = oDoc2.Bookmarks("SouceBMName").Range.FormattedText
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get image from bookmark? Pasting Image inside Table and Resize Image Not Working Grahamers2002 Drawing and Graphics 5 07-02-2018 04:49 PM
Find Bookmark, move to bookmark, execute code, repeat raymm3852 Word VBA 10 04-15-2016 06:21 PM
How to get image from bookmark? Bookmark not replaced when inserting but to lower right corner of image newbieX Word VBA 6 11-20-2015 02:03 PM
How to get image from bookmark? Bookmark Not Showing Bookmark RegAudit Word 6 03-16-2015 11:08 PM
How to get image from bookmark? TOC: Link to bookmark or image Mijin Word 2 09-22-2011 03:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:16 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