Supportnet Computer
Planet of Tech

Supportnet / Forum / Skripte(PHP,ASP,Perl...)

Textfeld mit Datum vom Vortag





Frage

Hallo Im word 2000 hab ich eine document mit ein Userform das sich automatisch öffnet, in dem einen Textfeld möchte ich das immer automatisch das Datum vom Vortag steht. Wie stelle ich das an??? Hier mein code: Private Sub TextBox5_Activate() TextBox5.Text = Format(Now, "dd.mm.yyyy") End Sub Was muss ich ändern damit es funktioniert und damit das Datum vom Vortag erscheint???? Danke Kann mir auch noch jemand ein Beispiel geben wie ich das übertragen kann ins World?? über eine commandbutton? Danke VB Anfänger

Antwort 1 von cmkatz

Hallo,

probiers mal hiermit:


Private Sub TextBox5_Activate() 
TextBox5.Text = Format(Now - 1, "dd.mm.yyyy") 


Gruß
cmkatz

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: