lucky12341
Board Regular
- Joined
- Nov 4, 2005
- Messages
- 121
I am using this code to enter basic data into the next available empty cell in A1 from an input form. Can I change the code to find an entry that is in the A column and then enter data in the neighboring B,C etc columns, i.e. information is maybe in cell A76 and the information would be entered in B76 and C76, just as an example. Thanks
Private Sub Accept_Click()
ActiveWorkbook.Sheets("Inventory").Activate
Range("A1").Select
Do
If IsEmpty(ActiveCell) = FalseThen
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
ActiveCell.Value = PObox.Value
ActiveCell.Offset(0, 1) = PCMKbox.Value
ActiveCell.Offset(0, 2) = Partbox.Value
ActiveCell.Offset(0, 3) = Descriptionbox.Value
ActiveCell.Offset(0, 4) = Materialbox.Value
ActiveCell.Offset(0, 5) = Drawingbox.Value
ActiveCell.Offset(0, 6) = Qtybox.Value
ActiveCell.Offset(0, 7) = HICbox.Value
End Sub
Private Sub Accept_Click()
ActiveWorkbook.Sheets("Inventory").Activate
Range("A1").Select
Do
If IsEmpty(ActiveCell) = FalseThen
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
ActiveCell.Value = PObox.Value
ActiveCell.Offset(0, 1) = PCMKbox.Value
ActiveCell.Offset(0, 2) = Partbox.Value
ActiveCell.Offset(0, 3) = Descriptionbox.Value
ActiveCell.Offset(0, 4) = Materialbox.Value
ActiveCell.Offset(0, 5) = Drawingbox.Value
ActiveCell.Offset(0, 6) = Qtybox.Value
ActiveCell.Offset(0, 7) = HICbox.Value
End Sub