Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default code to add rows to combobox

Tom........thanks for the help.......I'll give that a try
-----Original Message-----
Private Sub CommandButton1_Click()
with listbox1
.AddItem Textbox1.Value
for i = 1 to 5
.list(.listcount-1, i * 2 ) = _
me.controls("Textbox" & i + 1).Value
Next
End With
End Sub
--
Regards,
Tom Ogilvy

"JT" wrote in

message
...
My form has 6 text boxes for the user to enter data.
Whatever data is entered into the text boxes should be a
new line on a combo box.

The combo box has 12 columns. One for each text box and
one is blank between each column with data. (The extra
columns help line up the data with the labels I'm using

as
Headings.)

I'm having trouble with (1) getting the data from the

text
boxes into columns. The only success I've had is

getting
all of the data going down in column 1 instead of across
row 1.

and (2) each time the users enter data in this form a
different number of lines will be added to the combobox.
I'm having trouble adding a 2nd, 3rd 4th, etc. lines to
the combobox.

Any suggestions or help with this coding would be great.
Thanks for the help........



.

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
combobox code [email protected] uk Excel Discussion (Misc queries) 0 December 20th 09 06:21 PM
combobox code [email protected] uk Excel Discussion (Misc queries) 0 December 20th 09 08:28 AM
combobox code [email protected] uk Excel Discussion (Misc queries) 2 December 19th 09 08:37 AM
ComboBox Code John Calder New Users to Excel 4 July 28th 09 01:17 AM
ComboBox code Alexandre Ferreira Excel Worksheet Functions 1 January 11th 07 02:52 PM


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