View Single Post
 
Old 06-09-2014, 05:55 AM
ksigcajun ksigcajun is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: May 2014
Posts: 76
ksigcajun is on a distinguished road
Default Adding text to after a bookmark based on drop down menu choice

Hey everyone!

I'm hoping to create a drop down menu with two choices (Low and Minimal) and if low is chosen it would add the following "Please delete all content for Benchmark team" after bookmark "BM2" in the document. If minimal is chosen, it wouldn't add anything and the space would be blank in the document.

Can anyone help with the code? This is what I have so far and its not adding the text where I want in the document.

Code:
Private Sub Paragraph_Addition
Dim StrDetails As String
With ContentControl
  If .Title = "Grade" Then
    Select Case .Range.Text
      Case "LOW"
        StrDetails = "Please delete all content for Benchmark team."
    Case "MINIMAL"
        StrDetails = ""
      Case Else: StrDetails = ""
    End Select
    ActiveDocument.ContentControls(2).Range.Text = StrDetails
  End If
End With
End Sub
Thanks!
Reply With Quote