I have an input form that adds data to a table with some calculations.
One of the things my VBA script does is adding a date to that table for each entry aswel.
Now, the date format I used in the column is "dd/mm/yyy"
So today on 1st of september, it should write:
01/09/2011
But it always keeps me showing up:
09/01/2011
The function I have in the VBA script to create the date is:
Can someone help me with this?
I assume it's a commen problem?... I'm quite new to this.
Thanks!
One of the things my VBA script does is adding a date to that table for each entry aswel.
Now, the date format I used in the column is "dd/mm/yyy"
So today on 1st of september, it should write:
01/09/2011
But it always keeps me showing up:
09/01/2011
The function I have in the VBA script to create the date is:
Code:
Function DateAndTime()
DateAndTime = Now
DateAndTime = Format(DateAndTime, "dd/mm/yyyy")
With Selection
.Copy
.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
End With
Application.CutCopyMode = False
End Function
I assume it's a commen problem?... I'm quite new to this.
Thanks!