Hi
I have a userform that adds data in an offset(1). value method based on 3 criteria on the form (a "Task" combobox, a ""Notes" textbox and a Now() statement.
The task, notes and timestamp are added to the sheet in sequence - this works fine.
My simple but annoying issue is thus...if someone adds a "Task" but doesnt add "Notes" it leaves a blank cell in the sequence.
The next "Task" update with "Notes" added will populate the "Task" in the right place, but the "Notes" in the previous line.
Is there a way to allow users not to add notes with the offset staying in line with the "task" entry?
Code below:
Range("A10000").End(xlUp).Offset(1).Value = ComboBox1.Value
Range("b10000").End(xlUp).Offset(1).Value = TextBox1.Value
Range("c10000").End(xlUp).Offset(1).Value = Now()
MsgBox "Your entry has been recorded.", vbInformation + vbOKOnly, "Spreadsheet update"
TextBox1.Value = ""
UserForm1.Hide
I have a userform that adds data in an offset(1). value method based on 3 criteria on the form (a "Task" combobox, a ""Notes" textbox and a Now() statement.
The task, notes and timestamp are added to the sheet in sequence - this works fine.
My simple but annoying issue is thus...if someone adds a "Task" but doesnt add "Notes" it leaves a blank cell in the sequence.
The next "Task" update with "Notes" added will populate the "Task" in the right place, but the "Notes" in the previous line.
Is there a way to allow users not to add notes with the offset staying in line with the "task" entry?
Code below:
Range("A10000").End(xlUp).Offset(1).Value = ComboBox1.Value
Range("b10000").End(xlUp).Offset(1).Value = TextBox1.Value
Range("c10000").End(xlUp).Offset(1).Value = Now()
MsgBox "Your entry has been recorded.", vbInformation + vbOKOnly, "Spreadsheet update"
TextBox1.Value = ""
UserForm1.Hide