Re: visual basic in excel
Switch the line
Date = txtDate.Value
to this...
txtDate.Value = Date
Re: visual basic in excel
Also change
lblMonDate1.Caption = Date + 1
to
lblMonDate1.Caption = DateAdd("d", 1, Date)' add 1 day
lblTueDate1.Caption = DateAdd("d", 2, Date)' add 2 days
etc
Iouri Boutchkine
[email protected]
Re: visual basic in excel
Hi,
Date, is a vb keyword that trigger the system date or get the system date.
use another variable name
instead of
Date = txtDate.Value
use
Date1 = txtDate.Value
Thanks
Hisham