S
Steve Troxell
Outlook 2007
I am new to working with Outlook forms. I have tried the following with
both bound and unbound combobox controls. Every time I always get
"invalid property value" when setting the Value property on the last
line. Apparently I am misunderstanding how set the value of a combobox.
Can anyone tell me what I am doing wrong here?
objControl.ColumnCount = 2
objControl.TextColumn = 0
objControl.BoundColumn = 1
objControl.ColumnWidths = ";0"
objControl.AddItem("one")
objControl.List(0, objControl.BoundColumn) = 1
objControl.AddItem("two")
objControl.List(1, objControl.BoundColumn) = 2
objControl.AddItem("three")
objControl.List(2, objControl.BoundColumn) = 3
objControl.Value = 2 <-- error here
The idea here is to have display values separate from hidden data
values. I thought setting the Value property here would set the combobox
to show "two" as the selected value. This code is running in the
Item_Open event.
Steve Troxell
I am new to working with Outlook forms. I have tried the following with
both bound and unbound combobox controls. Every time I always get
"invalid property value" when setting the Value property on the last
line. Apparently I am misunderstanding how set the value of a combobox.
Can anyone tell me what I am doing wrong here?
objControl.ColumnCount = 2
objControl.TextColumn = 0
objControl.BoundColumn = 1
objControl.ColumnWidths = ";0"
objControl.AddItem("one")
objControl.List(0, objControl.BoundColumn) = 1
objControl.AddItem("two")
objControl.List(1, objControl.BoundColumn) = 2
objControl.AddItem("three")
objControl.List(2, objControl.BoundColumn) = 3
objControl.Value = 2 <-- error here
The idea here is to have display values separate from hidden data
values. I thought setting the Value property here would set the combobox
to show "two" as the selected value. This code is running in the
Item_Open event.
Steve Troxell