dropdown - accessing values

G

greg

Hello,
I am creating a dropdown. And I have 2 quick questions.

Lets say I create like this

Sub bbb()

Dim objDD As Excel.DropDown

Set objRange = Range("J13")
Set objDD = ActiveSheet.DropDowns.Add( _
Range(objRange.Address).Left, _
Range(objRange.Address).Top, Range(objRange.Address).Width,
Range(objRange.Address).Height)

objDD.Display3DShading = True
objDD.AddItem ("11")
objDD.AddItem ("22")
objDD.Name = "combobox1"

End Sub




How can I set the default displayed value, to "22"?

From some cell. Lets say A1. How can I display the value? I tried: A1
"=combobox1". and did not work.

thanks for any help
 
G

greg

OK,
I can select the value.

by
objDD.Value = 1


But still wondering how I can link the selected value into a cell somewhere

thanks
 
G

greg

Just wondering if anyone knows how to access a Excel.DropDown from a cell?
Not from VBA.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top