B
Bill
Hi, I have two check boxes in a user form. If one checkbox
is checked I want a certain name inserted at a bookmark.
If the other check box is checked I want a different name
inserted at the bookmark.
How do I query the checkbox and insert the correct code?
Here is my code:
Private Sub CheckForm_Click()
Set vCompanyName = "My Company"
If ActiveDocument.FormFields("CheckForm").CheckBox.Value =
True Then
.Bookmarks("bkWhichCompany").Range _
.InsertBefore vCompanyName
End If
End Sub
Private Sub OtherCheckForm_Click()
Set vOtherCompanyName = "Other Company"
If ActiveDocument.FormFields
("OtherCheckForm").CheckBox.Value = True Then
.Bookmarks("bkWhichCompany").Range _
.InsertBefore vOtherCompanyName
End If
End Sub
is checked I want a certain name inserted at a bookmark.
If the other check box is checked I want a different name
inserted at the bookmark.
How do I query the checkbox and insert the correct code?
Here is my code:
Private Sub CheckForm_Click()
Set vCompanyName = "My Company"
If ActiveDocument.FormFields("CheckForm").CheckBox.Value =
True Then
.Bookmarks("bkWhichCompany").Range _
.InsertBefore vCompanyName
End If
End Sub
Private Sub OtherCheckForm_Click()
Set vOtherCompanyName = "Other Company"
If ActiveDocument.FormFields
("OtherCheckForm").CheckBox.Value = True Then
.Bookmarks("bkWhichCompany").Range _
.InsertBefore vOtherCompanyName
End If
End Sub