PC Review


Reply
Thread Tools Rate Thread

ComboBox and if

 
 
markelbourno@gmail.com
Guest
Posts: n/a
 
      3rd Oct 2006

How can i write a code for a ComboBox with two values Yes and No, when
I choose Yes I get Cell A1 and when I choose No I get 0.000?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxvaw==?=
Guest
Posts: n/a
 
      3rd Oct 2006
Hi
I am slightly modifying the code from an earlier reply to your question. It
is not clear what you mean by 'get' but instead I will just use the Message
box to display.

Private Sub ComboBox1_Click()
Select Case ComboBox1
Case "Yes"
Msgbox Sheet1.Cells(1,1).value
Case "No"
Msgbox "0.000"
End Select
End Sub


"(E-Mail Removed)" wrote:

>
> How can i write a code for a ComboBox with two values Yes and No, when
> I choose Yes I get Cell A1 and when I choose No I get 0.000?
>
>

 
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
Access Problem: Combobox.setfocus fires combobox.OnClick event Hal Levy Microsoft Access Form Coding 5 31st Jul 2009 03:54 AM
delete fields in subform combobox after main form combobox is chan deb Microsoft Access 4 24th Jan 2008 10:09 PM
ComboBox.Items.Clear() causes the selection of Text inside the edit of the ComboBox Nomasnd Microsoft Dot NET Framework Forms 1 27th Sep 2006 06:32 PM
HowTo? shift focus in VBA IDE between Object combobox, procedure combobox, and Code window Malcolm Cook Microsoft Access 0 11th Oct 2005 03:42 PM
Bug: Combobox.dropdown = True during Form.New() causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework Forms 1 12th Feb 2004 09:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 AM.