Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Individual values from a Combobox List placed in textboxes

How can I place 1 Value from a Combobox List into a separate Textboxes.
EG. If the Combobox list has 20 values, then each value placed into 20 different textboxes.

How can i do that ?
Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default Individual values from a Combobox List placed in textboxes

how are the combobox values added? did you add them one at a time?
or is it a range on a worksheet?

if it's a range, you can add them to each textbox, as in.........

me.txtfirst.value = sheets("nameofsheet").range("a5")
me.txtsecond.value=sheets("nameofsheet").range("a6 ")
for example.

if you added them individually via code using the .additem method, i
would think you could also declare them as a variable & then load
the variable.value into the textboxes.
susan




On Jan 29, 10:04 pm, "Corey" wrote:
How can I place 1 Value from a Combobox List into a separate Textboxes.
EG. If the Combobox list has 20 values, then each value placed into 20 different textboxes.

How can i do that ?
Corey....


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Individual values from a Combobox List placed in textboxes

assuming there are enough textboxes and they are named sequentially such as
Textbox1, Textbox2, etc.

for i = 0 to listbox1.listcount - 1
me.controls("Textbox" & i + 1).Value = Listbox1.List(i)
Next

--
Regards,
Tom Ogilvy


"Corey" wrote:

How can I place 1 Value from a Combobox List into a separate Textboxes.
EG. If the Combobox list has 20 values, then each value placed into 20 different textboxes.

How can i do that ?
Corey....



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
Using Unique Values in as a combobox value list Ayo Excel Discussion (Misc queries) 0 March 7th 08 01:51 PM
Filling Textboxes from Combobox selection Corey Excel Programming 14 January 22nd 07 09:54 AM
Combobox list to leave ONLY related values in list ?? Corey Excel Programming 2 January 4th 07 09:13 PM
Combobox List to list Numerical Values ONLY in Column A is specific Sheet.... Corey Excel Programming 5 December 28th 06 10:40 AM
how to populate a combobox with a list of unique values? RIOSGER Excel Programming 2 August 9th 05 04:16 AM


All times are GMT +1. The time now is 10:15 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"