Hello all..
Wondering if it is possible to build a userform for data entry.... sometimes all of the data may be identical except for the ID#.... What is the best way of processing this thru a userform? Thought maybe set up ten text boxes where if a ID# is entered the userform will generate a new row of data for each ID#..... duplicating all the rest of the data
Example if I have 10 different cars.... the cars are identical except for their ID#s... I would like the userform to generate 10 rows of data on sheet1... all data would be identical except for the ID#s.. end result would look like below....however I would not have had to fill out the userform 10 times.... only once but entered each different ID#s
Is this possible? Would it be easiest to have 10 textboxes so that one could enter up to 10 different ID#s? Is there a better way to enter this data in a userform?
Below VBA is the userform VBA that I am using to push data from userform to "Sheet1"
Thank you in advance.
Nate
Wondering if it is possible to build a userform for data entry.... sometimes all of the data may be identical except for the ID#.... What is the best way of processing this thru a userform? Thought maybe set up ten text boxes where if a ID# is entered the userform will generate a new row of data for each ID#..... duplicating all the rest of the data
Example if I have 10 different cars.... the cars are identical except for their ID#s... I would like the userform to generate 10 rows of data on sheet1... all data would be identical except for the ID#s.. end result would look like below....however I would not have had to fill out the userform 10 times.... only once but entered each different ID#s
Is this possible? Would it be easiest to have 10 textboxes so that one could enter up to 10 different ID#s? Is there a better way to enter this data in a userform?
Below VBA is the userform VBA that I am using to push data from userform to "Sheet1"
Thank you in advance.
Nate
Color | Windows | Transmission | Tires | Interior | ID# |
Red | Power | Automatic | New | Leather | 774847 |
Red | Power | Automatic | New | Leather | 88575 |
Red | Power | Automatic | New | Leather | 73639327 |
Red | Power | Automatic | New | Leather | 8287247 |
Red | Power | Automatic | New | Leather | 88889799 |
Red | Power | Automatic | New | Leather | 9797975 |
Red | Power | Automatic | New | Leather | 2487594 |
Red | Power | Automatic | New | Leather | 664849 |
Red | Power | Automatic | New | Leather | 736 |
Red | Power | Automatic | New | Leather | 6363663 |
VBA Code:
Private Sub CommandButton1_Click()
Application.DisplayAlerts = False
erow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
Cells(erow, 1) = txtDate.Text
Cells(erow, 2) = txtSSRName.Text
Cells(erow, 3) = txtFRSName.Text
Cells(erow, 4) = txtContactNumber.Text
Cells(erow, 5) = ComboBox1
Cells(erow, 6) = txtPreviouslyReported.Text
Cells(erow, 7) = cboTopics
Cells(erow, 8) = cboIssues
Cells(erow, 9) = ComboBox3
Cells(erow, 10) = txtPatientID.Text
Cells(erow, 12) = ComboBox2
Cells(erow, 16) = txtPertinentDetails.Text
Cells(erow, 17) = txtOtherImportant.Text
Cells(erow, 19) = txtClaimDenial.Text
Cells(erow, 20) = txtPayer.Text
Cells(erow, 21) = txtDOS.Text
Cells(erow, 22) = txtAppealInfo.Text
Cells(erow, 23) = txtSiteName.Text
Cells(erow, 25) = txtHCPName.Text
Cells(erow, 24) = txtSiteID.Text
Cells(erow, 26) = txtSiteContact.Text
Cells(erow, 27) = txtSitePhone.Text
Cells(erow, 28) = txtBestTime.Text
Cells(erow, 29) = txtExpectations.Text
txtDate.Text = ""
txtSSRName.Text = ""
txtFRSName.Text = ""
txtContactNumber.Text = ""
ComboBox1 = ""
txtPreviouslyReported.Text = ""
cboTopics = ""
cboIssues = ""
ComboBox3 = ""
txtPatientID.Text = ""
ComboBox2 = ""
txtPertinentDetails.Text = ""
txtOtherImportant.Text = ""
txtClaimDenial.Text = ""
txtPayer.Text = ""
txtDOS.Text = ""
txtAppealInfo.Text = ""
txtSiteName.Text = ""
txtHCPName.Text = ""
txtSiteID.Text = ""
txtSiteContact.Text = ""
txtSitePhone.Text = ""
txtBestTime.Text = ""
txtExpectations.Text = ""
Application.Visible = True
Unload Me
ActiveWorkbook.Save
Application.DisplayAlerts = True
End Sub