Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Combobox List - Which Property

A simple question - how does one populate a combobox with a list of values:
Client,Value, Revenue

And then I will use:

Private Sub ComboBox1_Click()
If ComboBox1.Value = "Client" Then
Call Client
End If
End Sub

To call functions

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Combobox List - Which Property

Hi

one way is to code on the userform_initialize event

ComboBox1.additem "Client"
ComboBox1.additem "Value"
ComboBox1.additem "Revenue"

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"teresa" wrote in message
...
A simple question - how does one populate a combobox with a list of values:
Client,Value, Revenue

And then I will use:

Private Sub ComboBox1_Click()
If ComboBox1.Value = "Client" Then
Call Client
End If
End Sub

To call functions

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Combobox List - Which Property

Julie,

Forgive my ignorance - userform_initialize event?
where do I actually code this.

T


"JulieD" wrote:

Hi

one way is to code on the userform_initialize event

ComboBox1.additem "Client"
ComboBox1.additem "Value"
ComboBox1.additem "Revenue"

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"teresa" wrote in message
...
A simple question - how does one populate a combobox with a list of values:
Client,Value, Revenue

And then I will use:

Private Sub ComboBox1_Click()
If ComboBox1.Value = "Client" Then
Call Client
End If
End Sub

To call functions

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Combobox List - Which Property

Hi Teresa

it has just occured to me that you might not be using a combo box on a
userform but directly in a worksheet ... if this is the case then if you
created the combo box using the control toolbox toolbar then the property is
LISTFILLRANGE where your three items are typed somewhere in three cells.

if you are using a userform to present the combobox, then double click on
the userform will get you into the userform code and then from the top right
drop down box, choose initialize and put the code in there
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"teresa" wrote in message
...
Julie,

Forgive my ignorance - userform_initialize event?
where do I actually code this.

T


"JulieD" wrote:

Hi

one way is to code on the userform_initialize event

ComboBox1.additem "Client"
ComboBox1.additem "Value"
ComboBox1.additem "Revenue"

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"teresa" wrote in message
...
A simple question - how does one populate a combobox with a list of
values:
Client,Value, Revenue

And then I will use:

Private Sub ComboBox1_Click()
If ComboBox1.Value = "Client" Then
Call Client
End If
End Sub

To call functions

Thanks






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Combobox List - Which Property

Julie - you're right,I was using this in a worksheet- so its the LISTFILLRANGE
property that I have to use

Thanks A Million

"JulieD" wrote:

Hi Teresa

it has just occured to me that you might not be using a combo box on a
userform but directly in a worksheet ... if this is the case then if you
created the combo box using the control toolbox toolbar then the property is
LISTFILLRANGE where your three items are typed somewhere in three cells.

if you are using a userform to present the combobox, then double click on
the userform will get you into the userform code and then from the top right
drop down box, choose initialize and put the code in there
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"teresa" wrote in message
...
Julie,

Forgive my ignorance - userform_initialize event?
where do I actually code this.

T


"JulieD" wrote:

Hi

one way is to code on the userform_initialize event

ComboBox1.additem "Client"
ComboBox1.additem "Value"
ComboBox1.additem "Revenue"

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"teresa" wrote in message
...
A simple question - how does one populate a combobox with a list of
values:
Client,Value, Revenue

And then I will use:

Private Sub ComboBox1_Click()
If ComboBox1.Value = "Client" Then
Call Client
End If
End Sub

To call functions

Thanks






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA ColumnHeads Property for ComboBox VBA Dabbler[_2_] Excel Programming 2 February 28th 05 06:55 PM
OLE Combobox MatchRequired property not working Michael Deathya Excel Programming 4 January 29th 05 11:07 PM
Combobox change property SASMan Excel Programming 1 November 30th 04 11:22 PM
Cont' Value and Text Property of Combobox augustus Excel Programming 0 November 1st 04 10:18 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"