FindingMyself
New Member
- Joined
- Jun 27, 2011
- Messages
- 19
So this is what I have right now,
Private Sub CommandButton1_Click()
Dim rngLastCell As Range
With ThisWorkbook.Worksheets("PM Checklist")
Set rngLastCell = .Range("A" & Rows.Count).End(xlUp)
rngLastCell.Offset(1, 0).Value = cboDay.Text & cboMonth.Text & cboYear.Text
rngLastCell.Offset(1, 1).Value = cboPMType.Text
rngLastCell.Offset(1, 2).Value = cboEquipment.Text
rngLastCell.Offset(1, 3).Value = txtSpecs.Text
rngLastCell.Offset(1, 4).Value = txtValue.Text & "|" & cboUnits.Text
End With
It basicly fills the next available row with the values obtained from my userform. I also created a button to move between the previous and next cells which functions around Selection.Offset(1, 0).Select
Is there a way that I can edit an entire row that the currently active cell is in? I'd like to be able to replace the values with the ones from the userform, sort of like an edit button.
Private Sub CommandButton1_Click()
Dim rngLastCell As Range
With ThisWorkbook.Worksheets("PM Checklist")
Set rngLastCell = .Range("A" & Rows.Count).End(xlUp)
rngLastCell.Offset(1, 0).Value = cboDay.Text & cboMonth.Text & cboYear.Text
rngLastCell.Offset(1, 1).Value = cboPMType.Text
rngLastCell.Offset(1, 2).Value = cboEquipment.Text
rngLastCell.Offset(1, 3).Value = txtSpecs.Text
rngLastCell.Offset(1, 4).Value = txtValue.Text & "|" & cboUnits.Text
End With
It basicly fills the next available row with the values obtained from my userform. I also created a button to move between the previous and next cells which functions around Selection.Offset(1, 0).Select
Is there a way that I can edit an entire row that the currently active cell is in? I'd like to be able to replace the values with the ones from the userform, sort of like an edit button.