FindingMyself
New Member
- Joined
- Jun 27, 2011
- Messages
- 19
So here is my code,
Private Sub CommandButton1_Click()
Sheets("PM Checklist").Range("A2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = cboDay.Text & cboMonth.Text & cboYear.Text
Sheets("PM Checklist").Range("B2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = cboPMType.Text
Sheets("PM Checklist").Range("C2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = cboEquipment.Text
Sheets("PM Checklist").Range("D2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = txtSpecs.Text
Sheets("PM Checklist").Range("E2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = txtValue.Text & cboUnits.Text
End Sub
What I need to do is have my command button fill in a row of values with the values from my various dropbox and textbox and then move to the next row. I'm getting an error code with the above though
Here's a picture if it will help.
Private Sub CommandButton1_Click()
Sheets("PM Checklist").Range("A2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = cboDay.Text & cboMonth.Text & cboYear.Text
Sheets("PM Checklist").Range("B2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = cboPMType.Text
Sheets("PM Checklist").Range("C2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = cboEquipment.Text
Sheets("PM Checklist").Range("D2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = txtSpecs.Text
Sheets("PM Checklist").Range("E2").End(xlDown).Offset(1, 0).Select
ActiveCell.Value = txtValue.Text & cboUnits.Text
End Sub
What I need to do is have my command button fill in a row of values with the values from my various dropbox and textbox and then move to the next row. I'm getting an error code with the above though
Here's a picture if it will help.
Last edited: