![]() |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]() I have created a word UserForm that has multiple checkboxes. I want the value of those checkboxes to appear on my word document next to a bookmark value. However, right now only one value is displayed on my document Dim oCtrl As Control Dim NeededForms As Range Set NeededForms = ActiveDocument.Bookmarks("NeededForms").Range For Each oCtrl In NeededForms1.Controls If TypeName(oCtrl) = "CheckBox" Then If oCtrl.Value = True Then NeededForms.Text = oCtrl.Caption Exit For End If End If Next Unload Me Repaint End Sub |
Tags |
checkboxes, word user form |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ms word document text translation using vba code | pk_00 | Word VBA | 1 | 03-02-2020 03:11 PM |
The Word userform checkbox (checked/unchecked) is not saved on the Application Quit | matapagi2019 | Word VBA | 3 | 03-31-2019 02:29 AM |
![]() |
TMAL | Word VBA | 6 | 12-15-2017 02:16 PM |
Template opens with userform ; non-checked boxes should lead to deletion of corresp paragraphs | samszaf | Word | 1 | 09-07-2015 09:52 AM |
VBA Code in a UserForm module to delete a Command Button which opens the userform | Simoninparis | Word VBA | 2 | 09-21-2014 03:50 AM |