Hi, I'm in a need for help.
Created a userform to view data and another one to change it, the userform where you can change data on sheet shouldnt change data on sheet if there's no data in the textbox. Just cant figure out how to make it skip that textbox and not to change existing data as a blank cell, but still fill in from the other textboxes that have data in them. Also using combobox. This is the code for the submit changes button.
Private Sub Muuda_Click()
ActiveCell.Offset(0, 2) = Me.stattcob.Value
If Me.stattcob.Value = "" Then
'What do i need to add here for it to skip/ignore it then
Else
ActiveCell.Offset(0, 2) = Me.stattcob.Value
End If
ActiveCell.Offset(0, 4) = Me.kuup.Value
If Me.kuup.Value = "" Then
'What do i need to add here for it to skip/ignore it then
Else
ActiveCell.Offset(0, 2) = Me.kuup.Value
End If
ActiveCell.Offset(0, 5) = Me.krittcob.Value
If Me.krittcob.Value = "" Then
'What do i need to add here for it to skip/ignore it then
Else
ActiveCell.Offset(0, 2) = Me.krittcob.Value
End If
ActiveCell.Offset(0, 7) = Me.osacob.Value
If Me.osacob.Value = "" Then
'What do i need to add here for it to skip/ignore it then
Else
ActiveCell.Offset(0, 2) = Me.osacob.Value
End If
End Sub
Bookmarks