hab wiedermal ein Problem und benötige dringend eure Hilfe.
Ich füge per VBA ein paar CheckBoxen in bestimmte Zellen ein.
Dim lnglastrow As Long, lngIndex As Long
Dim objOLE As Object
lnglastrow = Range("E65536").End(xlUp).Row
lfdnr = 1
For lngIndex = 5 To lnglastrow
If Cells(lngIndex, 6) "" Then
ActiveSheet.OLEObjects.Add(ClassType:="Forms.CheckBox.1", _
Left:=Cells(lngIndex, 2).Left, Top:=Cells(lngIndex, 2).Top, _
Width:=15, Height:=10.5).Name = "Box" & lfdnr
OLEObjects("Box" & lfdnr).Object.Value = True
lfdnr = lfdnr + 1
Set objOLE = Nothing
End If
Next
Jetzt würde ich gerne herausfinden in welcher Zelle die CheckBoxen stehen. Kann ich das irgendwie herausfinden?