Excel-VBA: Getting the values from Form Controls

后端 未结 6 1784
挽巷
挽巷 2020-12-19 00:22

Embedded in the worksheet sheet1 I have a Form Control combo box named combobox_test and it has selected value x

in addition t

6条回答
  •  情深已故
    2020-12-19 01:22

    I'm not sure this is what you want, but it's a start. The Shape object doesn't have a Value property, which is the source of the error. There is a DropDown object that is deprecated, but still available.

    Sub ButtonPressed_sample()
    
        Set putitrng = Range("theCells")
        putitrng.Rows(1) = ActiveSheet.DropDowns("combobox_test").value
    
    End Sub
    

提交回复
热议问题