Thread: [Solved] Bookmark content controls
View Single Post
 
Old 06-12-2016, 06:14 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Instead of setting the range to the cell, set it to the range of the content control

Code:
   If .Range.Information(wdWithInTable) = True Then
      Set Rng = CCtrl.Range
      With Rng
        .Bookmarks.Add CCtrl.Title, Rng
      End With
    End If
  End With
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote