im trying to create a code to get the weekending date. However, there is an error when i try to run it.
=A1+(7-WEEKDAY(A1)) - this is the code i'd like to convert to vba
WE.Value = transdate.Value + (8 - Weekday(transdate.Value))
-----****Note
WE.value is a textbox where the weekending date should be recorded. transdate.value is the transaction date.
Please assist.
Thanks
Bryan
=A1+(7-WEEKDAY(A1)) - this is the code i'd like to convert to vba
WE.Value = transdate.Value + (8 - Weekday(transdate.Value))
-----****Note
WE.value is a textbox where the weekending date should be recorded. transdate.value is the transaction date.
Please assist.
Thanks
Bryan