Can't see drop down list in Excel VBA

Posted by Ten Ton Gorilla on Stack Overflow See other posts from Stack Overflow or by Ten Ton Gorilla
Published on 2010-03-25T18:48:08Z Indexed on 2010/03/25 18:53 UTC
Read the original article Hit count: 419

Filed under:
|

I've created a very simple drop down list in excel. It holds a sequence of integers loaded from a cell range (years). I need to read the selected value in vba. However I can't even seem to find the control!

I've tried CboYear Sheet2.CboYear Worksheets("SheetName").CboYear etc. etc.

From everywhere in VBA this control just doesn't exist. All the tutorial I find seem to assume that using just the control name will work.

I've tried the code in the sheet itself, the workbook, and a module, no luck.

© Stack Overflow or respective owner

Related posts about excel

Related posts about excel-vba