![]() |
|
#4
|
||||
|
||||
|
Checkboxes don't typically have a name that begins txt. Are you sure it is a checkbox and not a textbox?
The type of the userform textbox and the variable must match with the code you are using. If one is a string and the other is a boolean then you will need to convert it. For example, does ActiveDocument.Variables("plaintiff").Value return "True" or True? These are different - one is a string and one is a boolean. Can document variables hold anything other than strings? Perhaps try to initialize the value with Code:
Me.txtPlaintiff.Value = ActiveDocument.Variables("plaintiff").Value = "True"
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Word userform checkbox (checked/unchecked) is not saved on the Application Quit | matapagi2019 | Word VBA | 3 | 03-31-2019 02:29 AM |
Show Userform when Content Control CheckBox ticked
|
derajlance | Word VBA | 1 | 05-13-2016 01:55 PM |
| 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 |
Checkbox in Userform
|
lukael | Excel Programming | 5 | 02-18-2014 05:20 AM |
Checkbox on Userform result in Text in Word
|
Dolfie_twee | Word VBA | 1 | 06-22-2010 07:54 AM |