C
Chris Stafford
I am very new to VBA and looking for some guidance.
I'm using a ComboBox (in Word 2007) that is populated by an array. This
allows me to provide an abbreviation and the description of the
abbreviation. Once selected only the abbreviation is visible. Now I need
to display the selected abreactions description in another part for the
document and do not know how to do so. Here is the code I am using for the
ComboBox:
Dim HairArray(8, 2)
ComboBox18.ColumnCount = 2
ComboBox18.ColumnWidths = 30
HairArray(0, 0) = "BLD"
HairArray(1, 0) = "BLK"
HairArray(2, 0) = "BLN"
HairArray(3, 0) = "BRO"
HairArray(4, 0) = "GRY"
HairArray(5, 0) = "MUL"
HairArray(6, 0) = "RED"
HairArray(7, 0) = "SND"
HairArray(8, 0) = "WHI"
HairArray(0, 1) = "BALD"
HairArray(1, 1) = "BLACK"
HairArray(2, 1) = "BLONDE"
HairArray(3, 1) = "BROWN"
HairArray(4, 1) = "GREY"
HairArray(5, 1) = "MULTI - COLORED"
HairArray(6, 1) = "RED"
HairArray(7, 1) = "SANDY"
HairArray(8, 1) = "WHITE"
ComboBox18.List() = HairArray
Thank you for any help you can provide.
I'm using a ComboBox (in Word 2007) that is populated by an array. This
allows me to provide an abbreviation and the description of the
abbreviation. Once selected only the abbreviation is visible. Now I need
to display the selected abreactions description in another part for the
document and do not know how to do so. Here is the code I am using for the
ComboBox:
Dim HairArray(8, 2)
ComboBox18.ColumnCount = 2
ComboBox18.ColumnWidths = 30
HairArray(0, 0) = "BLD"
HairArray(1, 0) = "BLK"
HairArray(2, 0) = "BLN"
HairArray(3, 0) = "BRO"
HairArray(4, 0) = "GRY"
HairArray(5, 0) = "MUL"
HairArray(6, 0) = "RED"
HairArray(7, 0) = "SND"
HairArray(8, 0) = "WHI"
HairArray(0, 1) = "BALD"
HairArray(1, 1) = "BLACK"
HairArray(2, 1) = "BLONDE"
HairArray(3, 1) = "BROWN"
HairArray(4, 1) = "GREY"
HairArray(5, 1) = "MULTI - COLORED"
HairArray(6, 1) = "RED"
HairArray(7, 1) = "SANDY"
HairArray(8, 1) = "WHITE"
ComboBox18.List() = HairArray
Thank you for any help you can provide.