View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default trying to populate a variable from a combo box

Try

myDesc = Me.ComboBox2.Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"lwhite" wrote in message
...
I am trying to fill a variable with the value from a
combo box.

I tried the following

Dim myDesc as String
myDesc = Me.ComboBox2

and then I tried
Dim myDesc as String
Set myDesc = Me.ComboBox2

Could someone please tell me what I am doing wrong?
LWhite