LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default text & combobox info into worksheet

Hi David,

Try the code below for some ideas.
---------------------------------------
Private Sub cmdOK_click()

Dim i As Integer

For i = 5 To 25
If Cells(i, "A") = "" Then
Sheets("MySheet").Cells(i, "A") = frmMyForm.cboBox1
Sheets("MySheet").Cells(i, "B") = frmMyForm.cboBox2
Sheets("MySheet").Cells(i, "C") = frmMyForm.txtBox1
Sheets("MySheet").Cells(i, "D") = frmMyForm.txtBox2
End If
Exit Sub
Next i

End Sub
-------------------------------------
Hope this helps...

Chong Moua

-----Original Message-----
Hi,
I have a form that has two comboboxes and two text boxes
where the user inputs information. I was hoping that
someone could help me with the code that will allow me to
take the info off of the form and put it into a
spreadsheet. Data will be entered into this spreadsheet
daily off of this form, so I need it to go to the next
empty cell within a range of rows that are associated

with
a month. for example, rows 5 -25 are for January entries.
So if the date the entry takes place is in January, then
it will go to the first available row in the January
section.
Thanks for any help or direction that you can give me.
David
.

 
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
Copying info from worksheet to worksheet if info matches Carrach Excel Worksheet Functions 2 May 6th 10 09:52 AM
Copied info from Excel worksheet, but pasted info won't work in fo KRISTENV Excel Discussion (Misc queries) 3 January 8th 09 03:13 PM
Worksheet Combobox mudraker Excel Discussion (Misc queries) 1 April 11th 06 02:22 AM
Combobox to set value in cell on worksheet default105 Excel Discussion (Misc queries) 1 March 4th 06 10:44 PM
How do I extract text info from 1 excel worksheet into many? DG Excel Discussion (Misc queries) 1 November 22nd 05 11:11 AM


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