Private Sub Worksheet_Change(ByVal Target As Range)
Dim chCheckbox As CheckBox
If Target.Column = 1 Then
If Target.Count = 1 Then
If Target <> "" Then
Set chCheckbox = ActiveSheet.CheckBoxes.Add(Cells(Target.Row, 5).Left, _
Cells(Target.Row, 5).Top, 20, Cells(Target.Row, 5).Height)
chCheckbox.LinkedCell = Cells(Target.Row, 76).Address
chCheckbox.Caption = ""
End If
End If
End If
End SubPrivate Sub Worksheet_Change(ByVal Target As Range)
Dim chCheckbox As CheckBox
If Target.Column = 1 Then
If Target.Count = 1 Then
If Target <> "" Then
Set chCheckbox = ActiveSheet.CheckBoxes.Add(Cells(Target.Row, 2).Left, _
Cells(Target.Row, 2).Top, 20, Cells(Target.Row, 2).Height)
chCheckbox.LinkedCell = Cells(Target.Row, 76).Address
chCheckbox.Caption = ""
chCheckbox.Left = Columns(2).Left + (Columns(2).ColumnWidth + chCheckbox.Width) / 2
Else
For Each chCheckbox In ActiveSheet.CheckBoxes
If chCheckbox.TopLeftCell.Address = Cells(Target.Row, 2).Address Then
chCheckbox.Delete
Exit For
End If
Next chCheckbox
End If
End If
End If
End Sub
Neukunden automatisch in eine neues Tabellenblatt einfügen
gast57 30.10.2007 - 86 Hits - 15 Antworten
Dateinamen in automatisch in Zelle einfügen
Strauss 24.11.2007 - 73 Hits - 3 Antworten
Symbol mit VBA automatisch erstellen und einfügen
Eleve 20.12.2007 - 75 Hits - 4 Antworten
Kontrollkästen (Symbolleiste Formular)
afetinci 10.03.2009 - 148 Hits - 3 Antworten
Namen eines Tabellenblattes automatisch in eine Formel einfügen.
MoDAPF 13.03.2009 - 258 Hits - 9 Antworten