online 1
gast (50)

/ Forum / Tabellenkalkulation

TabellenkalkulationTabellenkalkulation

Fragevon mcscool88 vom 13.12.2021, 16:44 Options

Lösung

Bestimmtes Datum per Inputbox in Zelle schreiben

Hallo,

ich habe folgendes, wahrscheinlich total leicht zu lösendes Problem:

Ich möchte, dass bei einem Klick auf einen Button, eine Inputbox erscheint in die ich ein bestimmtes Datum (Format z.B. TT/MM/JJJJ) eintragen kann. Dieses Datum soll dann in eine bestimmte Zelle geschrieben werden.

Ich bekomme das einfach nicht hin. Vielleicht habt ihr ja eine Idee!?
Danke schonmal im Voraus.

MfG,
mcscool


Antwort schreiben

Antwort 1 von Hajo_Zi vom 13.12.2021, 16:50 OptionsLösung

Lösung
Hallo Unbekannter,

ohne Prüfung ob Datum.
Option Explicit

Sub Unbekannter()
Range("A1") = CDate(InputBox("Datum!"))
End Sub

Gruß Hajo

Antwort 2 von mcscool88 vom 13.12.2021, 17:02 Options

Danke Hajo!
das funktioniert ja super!
Gruß mcscool88

Ähnliche Themen

Excel - VB - Schaltfläche - Nach Datum/Uhrzeit eine Zelle +1
MadByte  15.11.2008 - 38 Hits - 9 Antworten

Datum, wann eine andere Zelle ausgefüllt wurde
Kerlanen  19.06.2009 - 169 Hits - 5 Antworten

Textlänge Application.InputBox, Inputbox
Tomschi  26.06.2009 - 226 Hits - 8 Antworten

VBA per Button einen wert in die Zelle schreiben
edik2  16.09.2009 - 556 Hits - 7 Antworten

Inhalt von einer Zelle in andere Zelle schreiben
Melina  19.09.2009 - 342 Hits - 2 Antworten

Hinweis

Diese Frage ist schon etwas älter, Sie können daher nicht mehr auf sie antworten. Sollte Ihre Frage noch nicht gelöst sein, stellen Sie einfach eine neue Frage im Forum..

Neue Einträge

Version: supportware 1.9.150 / 10.06.2022, Startzeit:Thu Jan 8 21:07:44 2026