I'm relatively new to VBA but I am writing a code that basically brings up a Userform with CheckBoxes. Each employee is supposed to open up and submit their form each week. I have an If code set up and an automatic date stamp for the worksheet, but how to I make it so the column switched to the next open one with each submission, instead of over writing the data already submitted.
Here is my code so far:
Here is my code so far:
Code:
Private Sub CommandButton1_Click()
Range("B1").Value = Now()
If CheckBox1.Value = True Then
Sheet2.Range("B2").Value = ""
Else
Sheet2.Range("B2").Value = "X"
End If
If CheckBox2.Value = True Then
Sheet2.Range("B3").Value = ""
Else
Sheet2.Range("B3").Value = "X"
End If
If CheckBox3.Value = True Then
Sheet2.Range("B4").Value = ""
Else
Sheet2.Range("B4").Value = "X"
End If