I have created a userform in VBA for my Word document. It works fine when the user needs to enter text. However, I want the user to be able to click on yes/no checkboxes as well, but can't seem to make this work.
Here is the code so far for my userform, but I don't know where/how to add the checkboxes:
Private Sub cmdCreateLetter_Click()
With ActiveDocument
.Bookmarks("Name".Range.InsertBefore txtName
.Bookmarks("Address".Range.InsertBefore txtAddress
.Bookmarks("CityStateZip".Range.InsertBefore txtCityStateZip
.Bookmarks("Salutation".Range.InsertBefore txtSalutation
.Bookmarks("Initials".Range.InsertBefore txtInitials
End With
UserForm1.Hide
End Sub
Ideas? Help?
Thanks!
Susan Susan M. Wagner
LAPELS
emzadi1@yahoo.com
susanw@lapels.com
Here is the code so far for my userform, but I don't know where/how to add the checkboxes:
Private Sub cmdCreateLetter_Click()
With ActiveDocument
.Bookmarks("Name".Range.InsertBefore txtName
.Bookmarks("Address".Range.InsertBefore txtAddress
.Bookmarks("CityStateZip".Range.InsertBefore txtCityStateZip
.Bookmarks("Salutation".Range.InsertBefore txtSalutation
.Bookmarks("Initials".Range.InsertBefore txtInitials
End With
UserForm1.Hide
End Sub
Ideas? Help?
Thanks!
Susan Susan M. Wagner
LAPELS
emzadi1@yahoo.com
susanw@lapels.com