![]() |
#1
|
|||
|
|||
![]()
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
teza2k06 | Word | 1 | 04-29-2014 04:54 PM |
Populate a table based on choices from drop down menu | Xaand | Word VBA | 0 | 02-25-2014 11:08 AM |
![]() |
christopherL | Word | 2 | 10-07-2013 11:22 PM |
![]() |
thecreaser | Word | 5 | 04-11-2013 04:21 AM |
Adding Macro menu to the right click menu (Word 2007) | masam123 | Word | 0 | 10-14-2011 04:05 AM |