HELPPP!!! Excel-> COMBO AND TEXT BOX

eliking510

New Member
Joined
Mar 2, 2011
Messages
15
heyy <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I have a userform , with a combobox that contains all the monthes of year, and also 12 sheets , each for a month.<o:p></o:p>
(two textboxes below the cmbobox)<o:p></o:p>
<o:p></o:p>
What I want to do is = when i choose a month from the combobox , and type into the textboxes , the text will be copied into the corresponding sheet<o:p></o:p>
--------------------------------------------------------------------------------<o:p></o:p>
<o:p></o:p>
1
http://img641.imageshack.us/i/85856834.png/<o:p></o:p>
<o:p></o:p>
2<o:p></o:p>
http://img138.imageshack.us/i/56460260.png/<o:p></o:p>
<o:p></o:p>
3<o:p></o:p>
http://img232.imageshack.us/i/75217580.png/<o:p></o:p>
<o:p></o:p>
4<o:p></o:p>
http://img340.imageshack.us/i/98646498.png/<o:p></o:p>
<o:p></o:p>
------------------------------------------------------------------<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
Thank You !!<o:p></o:p>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Welcome to MrExcel.

Add a CommandButton to your UserForm. Sample code:

Code:
Private Sub CommandButton1_Click()
    Dim NextCell As Range
    With Worksheets(ComboBox1.Value)
        Set NextCell = .Cells(.Rows.Count, 1).End(xlUp).Offset(1)
        With NextCell
            .Value = TextBox1.Value
            .Offset(, 1).Value = TextBox2.Value
        End With
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,275
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top