millhouse123
Active Member
- Joined
- Aug 22, 2006
- Messages
- 335
I currently have code that determines a date based on todays date.
Once the date is determined It is written to a range in the spreadsheet.
In another range I use the above dates in a formula, however it only works if I use it with the date function.
So what I did was write 3 variabls to store the Year, month and Day.
Now I need to use the date function in VBA and these variables to write the date in the date format.
It should look like this once it is writen to excel.
=Date(YearVariable,MonthVariable,DayVariable)
I need insite as to how to write that in VBA.
Thank you for your help.
Once the date is determined It is written to a range in the spreadsheet.
In another range I use the above dates in a formula, however it only works if I use it with the date function.
So what I did was write 3 variabls to store the Year, month and Day.
Now I need to use the date function in VBA and these variables to write the date in the date format.
It should look like this once it is writen to excel.
=Date(YearVariable,MonthVariable,DayVariable)
I need insite as to how to write that in VBA.
Thank you for your help.