View Single Post
 
Old 02-27-2024, 04:55 PM
gmaxey gmaxey is offline Windows 10 Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

If you title your CC "DDLists" and put this in the ThisDocument Module of the VB Project, it will do what your describe when the user exits the CC.


Code:
Option Explicit
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
Dim oRng As Range
  Select Case ContentControl.Title
    Case "DDList"
      Set oRng = ContentControl.Range.Paragraphs(1).Range
      oRng.Collapse wdCollapseEnd
      oRng.InsertAfter ContentControl.Range.Text & vbCr
  End Select
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote