Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 07-05-2018, 04:28 PM
macropod's Avatar
macropod macropod is offline creating drop down list Windows 7 64bit creating drop down list Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You can use a ContentControlOnExit macro coded as:
Code:
Private Sub Document_ContentControlOnExit(ByVal CCtrl As ContentControl, Cancel As Boolean)
Dim t As Long
With CCtrl
  If .Title <> "QMS 2015" Then Exit Sub
  If .ShowingPlaceholderText = True Then Exit Sub
  t = .Type
  .Type = wdContentControlText
  With .Range
    .Text = Split(.Text, " ")(0) & " " & Split(.Text, " ")(1)
  End With
  .Type = t
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating drop down list Creating a reducing drop down list Radders567 Word VBA 8 06-06-2020 12:41 AM
Creating a drop down list that if (a) is selected then (x) happens mummarochy Word 1 06-11-2018 10:07 PM
Drop down box list based on response to another drop down box Phideaux Excel 16 04-13-2018 03:07 AM
Help creating a hyperlink drop down list between documents SconnieGuy91 Word 3 11-30-2016 05:26 PM
creating drop down list Having a Drop-down list in Word referring to an Excel list celias Word VBA 3 07-11-2016 11:40 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:31 AM.


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