Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2017, 11:48 PM
macropod's Avatar
macropod macropod is offline How to insert bookmarks for content or Text of ContentControl Windows 7 64bit How to insert bookmarks for content or Text of ContentControl Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


You could use code like:
Code:
Dim Rng As Range
With ActiveDocument
  Set Rng = .ContentControls(1).Range
  With Rng
    .End = .End + 1
    .Start = .Start - 1
  End With
  .Bookmarks.Add Name:="Bookmark", Range:=Rng
End With
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
contentcontrol



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert bookmarks for content or Text of ContentControl Insert Rich Text Content Control in specific position, Word 2013 VBA LaurenM Word VBA 13 12-01-2017 02:07 AM
How can I insert a table of content slightly differing from the headings in the text? Tobinobi Word 4 09-25-2017 05:47 AM
How to insert a table using bookmarks in a document Catty Word VBA 3 05-04-2015 03:05 AM
How to insert bookmarks for content or Text of ContentControl Form updating Bookmarks - writes to the bookmarks multiple times PeterPlys Word VBA 13 01-14-2015 06:41 AM
Insert image in bookmarks kroz Word VBA 0 11-29-2010 04:55 AM

Other Forums: Access Forums

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