Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-09-2014, 05:55 AM
ksigcajun ksigcajun is offline Adding text to after a bookmark based on drop down menu choice Windows 7 64bit Adding text to after a bookmark based on drop down menu choice Office 2010 64bit
Advanced Beginner
Adding text to after a bookmark based on drop down menu choice
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding text to after a bookmark based on drop down menu choice Multiple Choice Drop Down List 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
Adding text to after a bookmark based on drop down menu choice Design: Adding text choice christopherL Word 2 10-07-2013 11:22 PM
Adding text to after a bookmark based on drop down menu choice Bookmark applied to drop-down list doesn't do the job 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

Other Forums: Access Forums

All times are GMT -7. The time now is 03:08 PM.


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