Private Sub UserForm_Activate()
CheckBox_ADD = False
CheckBox_Change.Value = True
CheckBox_Cleanup = False
'TextBox_ADD_Line
End Sub
Private Sub OK_Button_Form_Ctrl_W_Click()
If CheckBox_ADD.Value = True And CheckBox_Change.Value = False And CheckBox_Cleanup.Value = False Then
TextBox_ADD_Line.SetFocus
If TextBox_ADD_Line.Value = Empty Then
' Cancel = True
MsgBox "Enter a value"
Else
MsgBox "ADD Cell Content with input", vbOKOnly + vbInformation, "TEST (ADD)"
If ActiveCell.Value <> 0 Then ' Change all in to ... ... ...
With Worksheets("DVD Lijssie").Activate
ActiveCell.FormulaR1C1 = ActiveCell.Value & " " & "[" & "TextBox_ADD_Line.Value" & "]"
With ActiveCell.Characters(Len(ActiveCell.Value) - Len("[TextBox_ADD_Line.Value]") + 1, Len("[TextBox_ADD_Line.Value]")).Font
.Name = "Arial Narrow"
.FontStyle = "Regular"
.Size = 8
.ColorIndex = 16
End With
End With
End If
Unload Me
End If
Else
' NIKS
End If
If CheckBox_Change.Value = True And CheckBox_ADD.Value = False And CheckBox_Cleanup.Value = False Then
MsgBox "CHANGE Cell Content with input", vbOKOnly + vbInformation, "TEST (CHANGE)"
Worksheets("DVD Lijssie").Activate
If ActiveCell.Value <> 0 Then ' Change all in to ... ... ...
ActiveCell.FormulaR1C1 = ActiveCell.Value & " " & "]" & " " & "["
With ActiveCell.Font
.Name = "Arial Narrow"
.Size = 8
.ColorIndex = 16
End With
End If
Unload Me
Else
' NIKS
End If
If CheckBox_Cleanup.Value = True And CheckBox_ADD.Value = False And CheckBox_Change.Value = False Then
MsgBox "CLEAN Cell Content with input", vbOKOnly + vbInformation, "TEST (CLEAN)"
Unload Me
Else
' NIKS
End If
If CheckBox_Cleanup.Value = True And CheckBox_ADD.Value = False And CheckBox_Change.Value = True Then
MsgBox "CLEAN & CHANGE Cell Content with input", vbOKOnly + vbInformation, "TEST (CLEAN & CHANGE)"
Unload Me
Else
' NIKS
End If
If CheckBox_ADD.Value = True And CheckBox_Change.Value = True And CheckBox_Cleanup.Value = True Then
TextBox_ADD_Line.SetFocus
If TextBox_ADD_Line.Value = Empty Then
' Cancel = True
MsgBox "Enter a value"
Else
MsgBox "ADD, CHANGE & CLEAN Cell Content with input", vbOKOnly + vbInformation, "TEST (ADD, CHANGE & CLEAN)"
Unload Me
End If
Else
' NIKS
End If
If CheckBox_ADD.Value = True And CheckBox_Change.Value = True And CheckBox_Cleanup.Value = False Then
TextBox_ADD_Line.SetFocus
If TextBox_ADD_Line.Value = Empty Then
' Cancel = True
MsgBox "Enter a value"
Else
MsgBox "ADD & CHANGE Cell Content with input", vbOKOnly + vbInformation, "TEST (ADD, CHANGE)"
Unload Me
End If
Else
' NIKS
End If
If CheckBox_ADD.Value = True And CheckBox_Change.Value = False And CheckBox_Cleanup.Value = True Then
TextBox_ADD_Line.SetFocus
If TextBox_ADD_Line.Value = Empty Then
' Cancel = True
MsgBox "Enter a value"
Else
MsgBox "ADD & CLEAN Cell Content with input", vbOKOnly + vbInformation, "TEST (ADD & CLEAN)"
Unload Me
End If
Else
' NIKS
End If
'Skip:
'Unload Me
End Sub