Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdClearForm_Click()
Call UserForm_Initialize
End Sub
Private Sub cmdOK_Click()
ActiveWorkbook.Sheets("Laptop Checkout").Activate
Range("A1").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
ActiveCell.Value = txtName.Value
ActiveCell.Offset(0, 1) = txtDepartment.Value
ActiveCell.Offset(0, 2) = txtPhone.Value
ActiveCell.Offset(0, 3) = txtCheckout.Value
ActiveCell.Offset(0, 4) = txtReturn.Value
ActiveCell.Offset(0, 5) = txtBrand.Value
ActiveCell.Offset(0, 6) = txtModel.Value
If chkLaptop = True Then
ActiveCell.Offset(0, 9).Value = "Yes"
Else
ActiveCell.Offset(0, 9).Value = "No"
End If
If chkPower = True Then
ActiveCell.Offset(0, 10).Value = "Yes"
Else
ActiveCell.Offset(0, 10).Value = "No"
End If
If chkModem = True Then
ActiveCell.Offset(0, 11).Value = "Yes"
Else
ActiveCell.Offset(0, 11).Value = "No"
End If
If chkFloppy = True Then
ActiveCell.Offset(0, 12).Value = "Yes"
Else
ActiveCell.Offset(0, 12).Value = "No"
End If
If chkMouse = True Then
ActiveCell.Offset(0, 13).Value = "Yes"
Else
ActiveCell.Offset(0, 13).Value = "No"
End If
If chkSpare = True Then
ActiveCell.Offset(0, 14).Value = "Yes"
Else
ActiveCell.Offset(0, 14).Value = "No"
End If
If chkNetwork = True Then
ActiveCell.Offset(0, 15).Value = "Yes"
Else
ActiveCell.Offset(0, 15).Value = "No"
End If
If chkCD = True Then
ActiveCell.Offset(0, 16).Value = "Yes"
Else
ActiveCell.Offset(0, 16).Value = "No"
End If
If chkOther = True Then
ActiveCell.Offset(0, 17).Value = "Yes"
Else
ActiveCell.Offset(0, 17).Value = "No"
End If
ActiveCell.Offset(0, 18) = txtOther.Value
Call UserForm_Initialize
Range("A1").Select
End Sub
Private Sub Label6_Click()
End Sub
Private Sub UserForm_Initialize()
txtName.Value = ""
txtDepartment.Value = ""
txtPhone.Value = ""
txtCheckout.Value = Date
txtReturn.Value = ""
txtBrand.Value = ""
txtModel.Value = ""
chkLaptop = False
chkPower = False
chkModem = False
chkFloppy = False
chkMouse = False
chkSpare = False
chkNetwork = False
chkCD = False
chkOther = False
txtOther.Value = ""
End Sub