November 27th, 2008, 3:16 am
Hi LateThe first:You're right! the Worksheet_Change event is triggered only when a user changes a value. You can solve the trouble with an event procedure of DropDown as following:'///////////////////////////////////////Sub DropDown1_Change() Dim rng As Range Set rng = Sheet1.Range("selectedtext") MsgBox rng.ValueEnd Sub'///////////////////////// among the above codes, Range("selectedtext") is a cell containging a formula,=INDEX(yourlist,A2)yourlist is a range containing a listA2 is an index of selected item from the Dropdown control.The Second:As I know, You should use an array instead of STL's vector.I made the related code before but I can not find where that is stored right now.and more there is an error on uploading an excel file for the first problem.If you mail me, I'll send the files.Plz email me sjoo.kwak at gmail.com take care