View Single Post
 
Old 03-16-2015, 05:15 AM
rosscortb rosscortb is offline Windows XP Office 2010 32bit
Novice
 
Join Date: May 2014
Posts: 17
rosscortb is on a distinguished road
Default text based on Combo box selection

Hi

Word 2010

I have a combo box, with Engineer an option.

I have a bookmark also called Grade, If Engineer is select then Grade should equal D

Private Sub UserForm_Initialize()
With Me.cboPosition
.AddItem "Engineer"

End With
End Sub

Private Sub cmdOk_Click()

Selection.GoTo What:=wdGoToBookmark, Name:="Position"
Selection.TypeText Me.cboPosition


If Me.cboPosition = True Then
Selection.GoTo What:=wdGoToBookmark, Name:="Grade"
Selection.TypeText "E"


How do I Get the word E to display?

Thanks

Ross
Reply With Quote