From 9f3127abaef71f129486da5ba5fbf2a768453888 Mon Sep 17 00:00:00 2001 From: hubobel Date: Tue, 31 Dec 2024 12:18:57 +0100 Subject: [PATCH] Fehler bei Monaten mit 31 Tagen behoben --- py2EX.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/py2EX.py b/py2EX.py index d9b3f34..de6b52d 100644 --- a/py2EX.py +++ b/py2EX.py @@ -17,16 +17,17 @@ Tag = int(heute.strftime("%d")) - 1 # Tag.Monat.Jahr Monat = int(heute.strftime("%m"))+6 Jahr = int(heute.strftime("%y"))+2002 -if Tag ==30: - quit() - - # 1. Ein neues Workbook erstellen workbook = load_workbook(datei) # 2. Das aktive Arbeitsblatt auswählen sheet = workbook.active # 3. Namen des Arbeitsblattes ändern (optional) +if Tag ==30: + sheet["A1"] = jetzt + workbook.save(datei) + quit() + spalte = ['S','T','U','V','W','X','Y','Z','AA','AB','AC','AD','AE','AF','C','D','E','F','G','H','I','J','K','L','M' ,'N','O','P','Q','R'] form = {'C':15,'D':16,'E':17,'F':18,'G':19,'H':20,'I':21,'J':22,'K':23,'L':24,'M':25,'N':26,'O':27,'P':28,'Q':29,