Private Sub Worksheet_BeforeDoubleClick - - geht nur einmal
24.10.2024 16:55:41
STeve
Bräuchte eure Hilfe. In einer Tabelle habe ich dieses Event eingebaut:
Worksheet - BeforDoubleclick
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Call mach24erbeidoppellklickeintragen
End Sub
(Allgemein) - mach24erbeidoppellklickeintragen
Sub mach24erbeidoppellklickeintragen()
With Application
.ScreenUpdating = False
.EnableEvents = False
.Calculation = xlCalculationManual
End With
msgbox "geht"
With ActiveCell
.FormulaR1C1 = "06:30" ' Setzt die aktive Zelle auf 06:30
End With
With Application
.Calculation = xlCalculationAutomatic
.EnableEvents = True
.ScreenUpdating = True
End With
End Sub
Der Code läuft nur einmal nach öffnen der Datei ab.
Danach nicht mehr????
Es muss mit:
With ActiveCell
.FormulaR1C1 = "06:30" ' Setzt die aktive Zelle auf 06:30
End With
zusammen hängen??????
Habt ihr eine Idee!!!
Danke
Anzeige