ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Retrieve value from .Shapes.AddFormControl(xlDropDown... (https://www.excelbanter.com/excel-programming/410032-retrieve-value-shapes-addformcontrol-xldropdown.html)

groupie

Retrieve value from .Shapes.AddFormControl(xlDropDown...
 
Hi,
Have created and filled a combobox using .ControlFormat.AddItem

..ControlFormat.Value seems to return just the index number of the
selected item - how can the actual value from the combobox be picked
up? Thanks.

groupie

Retrieve value from .Shapes.AddFormControl(xlDropDown...
 
Got it:

MsgBox
excelshapeobject.ControlFormat.List(excelshapeobje ct.ControlFormat.Value)


All times are GMT +1. The time now is 04:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com