Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 03-08-2016, 02:03 AM
macropod's Avatar
macropod macropod is offline Dropdownlist-Parsing values to various ContentControls Windows 7 64bit Dropdownlist-Parsing values to various ContentControls Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
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

To use the userform with content controls instead of bookmarks, you might replace:
Code:
      Call UpdateBookmark("Description", "Widget Type A")
      Call UpdateBookmark("Revision", "1.01")
      Call UpdateBookmark("Material", "PVC")
      Call UpdateBookmark("Job_No", "1234")
with:
Code:
      With ActiveDocument
        .SelectContentControlsByTitle("Description")(1).Range.Text = "Widget Type A"
        .SelectContentControlsByTitle("Revision")(1).Range.Text = "1.01"
        .SelectContentControlsByTitle("Material")(1).Range.Text = "PVC"
        .SelectContentControlsByTitle("Job_No")(1).Range.Text = "1234"
      End With
and so on, where the titles are as indicated.

The code you're thinking of using would require all the content to be used for 'StrDetails' to be added programmatically to each of the userform ListBox's entries and, when an item is selected, retrieved from there before it could be used to populate the content controls.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA ppt ComboBox behaivor: 1.OnFocus change value 2. get dropdownlist doesn't disappear after mousec janism22 PowerPoint 2 03-26-2015 12:35 AM
ActiveDocument.ContentControls(ID) not working Tejas.T Word VBA 3 03-09-2015 06:50 PM
Updating grouped ContentControls in Word 2010 MGerhard Word VBA 3 08-04-2014 02:34 AM
Dropdownlist-Parsing values to various ContentControls Parsing 'FullName' column - help needed text to column ScottA Excel Programming 3 05-06-2014 12:49 PM
XML parsing & Object variable not set (Error 91) tinfanide Excel Programming 0 12-29-2011 08:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:08 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