Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-13-2016, 12:02 PM
derajlance derajlance is offline Windows 10 Office 2013
Novice
 
Join Date: May 2016
Posts: 18
derajlance is on a distinguished road
Default Show Userform when Content Control CheckBox ticked

I've tried to get this to work every way except the correct way obviously.

I have a Content Control CheckBox on a document. When it is checked, I would like a userform to show.



My most recent attempt to make this happen was using:
Code:
Private Sub Check1_Change()
    Dim objCC_Check1 As ContentControl
    Set objCC_Check1 = ActiveDocument.SelectContentControlsByTag("Check1").Item(1)
    
    If objCC_Check1.Checked = True Then
        UserForm1.Show
    End If
End Sub
When testing this, after entering a check, nothing happens.

Suggestions?
Reply With Quote
  #2  
Old 05-13-2016, 01:55 PM
derajlance derajlance is offline Windows 10 Office 2013
Novice
 
Join Date: May 2016
Posts: 18
derajlance is on a distinguished road
Default

Never mind.. I switched over to an ActiveX checkbox and got it working without an issue.
Reply With Quote
Reply
Please reply to this thread with any new information or opinions.

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clicking the selected Content Control checkbox returns wrong control in vba event DougsGraphics Word VBA 2 06-24-2015 07:31 AM
How-to: Add a quickpart, field or Building Block Gallery Content Control based on a UserForm HighSierra Word VBA 0 05-06-2015 08:20 PM
Replace checkbox symbol with check box content control canadansk Word VBA 5 04-01-2015 08:21 AM
Help with show/hide content control acontreras Word VBA 0 10-21-2014 07:28 PM
Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM


All times are GMT -7. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft