Here is the code I'm working with:
Dim strAmendType As String
strAmendType = cboAmendReply.Text
ActiveDocument.Bookmarks("bmkAmendType"
.Select
Selection.TypeText Text = strAmendType
ActiveDocument.Bookmarks("bmkAmendType2"
.Select
Selection.TypeText Text = strAmendType
The cboAmendReply is initialized with two items, "An Amendment" and "A Reply". The style of the combo box does not allow additional items to be entered. When I tested this code out by choosing "An Amendment" from the combo box it put "False" in both of the bookmark spots. Why is it putting "false" instead of "An Amendment"? This is not within a conditional statement. This code executes from a button_click event.
Dim strAmendType As String
strAmendType = cboAmendReply.Text
ActiveDocument.Bookmarks("bmkAmendType"
Selection.TypeText Text = strAmendType
ActiveDocument.Bookmarks("bmkAmendType2"
Selection.TypeText Text = strAmendType
The cboAmendReply is initialized with two items, "An Amendment" and "A Reply". The style of the combo box does not allow additional items to be entered. When I tested this code out by choosing "An Amendment" from the combo box it put "False" in both of the bookmark spots. Why is it putting "false" instead of "An Amendment"? This is not within a conditional statement. This code executes from a button_click event.