![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 7
|
I have a userform which pops up from a worksheet when I click a button. It has a textbox and a combobox, and a command button on it. All I need to know is, when I've filled in the textbox and the combobox, I want to push the command button, which unloads the form and places the textbox's answer into the cell in Column K in whichever row I'm in, and the same for the combobox but in column J. So basically, I need to know what the code is to put the answer from the two boxes into K and L of whatever row I'm in Can anyone help? |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Try
Private Sub CommandButton1_Click() Cells(ActiveCell.Row, 11) = Textbox1 Cells(ActiveCell.Row, 12) = Combobox1 Unload Me End Sub |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 7
|
Superb Dave, thank you very much!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|