Good evening,
I want to convert a date value in a cell into a the day only.
I don't know which expression to use I tried CStr, Value and all types of formulations to do:
I hope it is clear enough.
Actually, if my date coulb be analised to see if it is a sunday without having to use the spreadsheet it would be even better but I don't know if it is possible.
If you can help it would be greatly appreciated and if you have questions, I'm here!
Thanks in advance,
P.
I want to convert a date value in a cell into a the day only.
I don't know which expression to use I tried CStr, Value and all types of formulations to do:
HTML:
Dim Date as date
Dim Day as String
...
Cells(6, 3) = Date
Cells(6, 3).Select
Selection.NumberFormat = "dddd"
Day = Selection
If Day = "sunday" Then ...
I hope it is clear enough.
Actually, if my date coulb be analised to see if it is a sunday without having to use the spreadsheet it would be even better but I don't know if it is possible.
If you can help it would be greatly appreciated and if you have questions, I'm here!
Thanks in advance,
P.