PC Review


Reply
Thread Tools Rate Thread

ActiveX ComboBox Linked Cell

 
 
kittronald
Guest
Posts: n/a
 
      5th Aug 2011
Is there a way to have an ActiveX ComboBox's LinkedCell output as a
number and not text ?


- Ronald K.


 
Reply With Quote
 
 
 
 
GS
Guest
Posts: n/a
 
      5th Aug 2011
kittronald pretended :
> Is there a way to have an ActiveX ComboBox's LinkedCell output as a
> number and not text ?
>
>
> - Ronald K.


A combobox is a dropdown textbox, and so the answer to your Q is 'No'.
You can, however, convert the value to the appropriate numeric type if
IsNumeric(ComboBox1.Text)...

With ComboBox1
If IsNumeric(.Text) Then
CLng(.Text) 'convert to Long
CInt(.Text) 'convert to Integer
CDbl(.Text) 'convert to Double
'...
End If 'IsNumeric(.Text)
End With 'ComboBox1

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox still shows data when linked cell is empty Brettjg Microsoft Excel Programming 11 15th Apr 2009 11:37 PM
Changing linked cell runs ComboBox code =?Utf-8?B?aG1t?= Microsoft Excel Programming 1 21st Aug 2007 02:15 PM
Can I control linked cell property value in a copied ActiveX contr =?Utf-8?B?QmVlY2hiZWFyZA==?= Microsoft Excel Misc 0 4th May 2005 10:30 PM
Linked Cell Property In Activex controls =?Utf-8?B?S0c=?= Microsoft Excel Misc 4 26th Feb 2005 10:37 PM
Control Combobox Linked Cell vs Forms Combobox Linked Cell RamblinWreck Microsoft Excel Misc 2 26th Mar 2004 03:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:10 PM.