How to reference the contents of a list in a floating toolbar?

G

Guest

I've created a floating toolbar with a dropdown list on it. When the user
clicks a selection on the dropdown list, a procedure is called. Within that
procedure, I can see the value of ListIndex for the list, but I can't figure
out how to reference the value or text or contents at the location pointed to
by ListIndex. I know how to do this in Access, but Excel seems to require a
different approach.

How do I reference the contents of a list in a floating toolbar, given that
I know the ListIndex of the selection?

TIA!
 
T

Tom Ogilvy

with Commandbars("custom1").controls("Drop1")
s = .List(.ListIndex)
End With
msgbox s
 

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