Here is my problem I need to design a excell spread sheet that when a button is clicked it saves the name of the user is a cell("Name") and adds the date of payday, i.e. the upcomming friday. I have figured out the code to create the date I need just not sure how to add it to the Name. Here is the code I have written so far. example TMcGee02SEPT05
Function Begin()
'function to find Monday based on today's date
Dim mday As Date
mday = Date
Do Until WeekDay(mday) = 2
mday = mday - 1
Loop
Begin = CStr(mday)
End Function
'===================================================
Function EndDate()
'function to find Friday based on today's date
Dim mday As Date
mday = Date
Do Until WeekDay(mday) = 6
mday = mday + 1
Loop
EndDate = CStr(mday)
End Function
Any ideas?