Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Grd Grd is offline
external usenet poster
 
Posts: 118
Default How to get entries into a combox on a form?

Hi everybody

I have a dropdown that I want to list various depts - sales, finance etc...

This should be easy but I dont know how to do it.

Thanks for your help.

Suzanne
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default How to get entries into a combox on a form?

Hi,

You can add items by:

ComboBox1.AddItem "Item 1"
ComboBox1.AddItem "Item 2"
' and so on...


or, you can set the rowsource property to a range:

ComboBox1.RowSource = "Sheet1!A1:A10"



--

Hope that helps.

Vergel Adriano


"Grd" wrote:

Hi everybody

I have a dropdown that I want to list various depts - sales, finance etc...

This should be easy but I dont know how to do it.

Thanks for your help.

Suzanne

  #3   Report Post  
Posted to microsoft.public.excel.programming
Grd Grd is offline
external usenet poster
 
Posts: 118
Default How to get entries into a combox on a form?

Both work beautifully

thanks again

"Vergel Adriano" wrote:

Hi,

You can add items by:

ComboBox1.AddItem "Item 1"
ComboBox1.AddItem "Item 2"
' and so on...


or, you can set the rowsource property to a range:

ComboBox1.RowSource = "Sheet1!A1:A10"



--

Hope that helps.

Vergel Adriano


"Grd" wrote:

Hi everybody

I have a dropdown that I want to list various depts - sales, finance etc...

This should be easy but I dont know how to do it.

Thanks for your help.

Suzanne

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
Form behind cell entries pdberger Excel Discussion (Misc queries) 0 March 13th 08 10:12 PM
Excel Form Deleting Entries Kass Excel Discussion (Misc queries) 1 January 18th 07 01:46 PM
How to get entries on a list box on a form Grd Excel Programming 2 May 2nd 06 05:46 PM
how to get a list of entries onto a form listbox Grd Excel Programming 1 November 30th 05 07:36 PM
create entries on a listbox on a form Grd Excel Programming 1 March 28th 05 09:55 PM


All times are GMT +1. The time now is 09:35 AM.

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

About Us

"It's about Microsoft Excel"