Populate data in multiple tabs with a command button

David3b

New Member
Joined
Mar 23, 2011
Messages
1
I'm trying to complete a project for work. I have created a user form with several input boxes. I'd like this data to populate cells in multiple worksheet tabs. For example, my "Add Org" user form has text boxes containing information such as "last name" and "date appointed". After filling in the information on the user form, I'd like to click on a command button labeled "submit" which will then populate the data (alphabetically) from the form into both the "Master" worksheet as well as a particular "Organization" worksheet.

Any suggestions that will help me move this project along?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I was used something like the following:

D

Code:
Sub Submit()
 
    Dim iCount as Integer
 
 
    iCount = Sheets("Organizer").UsedRange.Rows.Count + 1
    Sheets("Organizer").Cells( iCount, 1).Value = txtName.Text
    Sheets("Organizer").Cells(iCount, 2).Value = txtDate.Text
    With Sheets("Organizer").Sort
        .SetRange Range("A1:B" & iCount)
        .Header = xlNo
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
 
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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