A
Anthony
Hi, I am new to this, so this may well be a simple question.
I have this code which I want to seach all my worksheets in my workbook for
a worksheet which is called after today's date, ie if executed now it would
search for a worksheet named '14Jul'
here's the code I have
Sub Goto_Todays_log()
SheetName = "today()"
If sSheetName = "" Then Exit Sub
On Error Resume Next
Sheets(sSheetName).Select
On Error GoTo 0
End Sub
...but it doesn't work because it is seaching for a worksheet called "today()"
can anybody help - aLso if possible I wud like a msg box telling the user
that one hasn't been found with todays date if one not found
many thanks
I have this code which I want to seach all my worksheets in my workbook for
a worksheet which is called after today's date, ie if executed now it would
search for a worksheet named '14Jul'
here's the code I have
Sub Goto_Todays_log()
SheetName = "today()"
If sSheetName = "" Then Exit Sub
On Error Resume Next
Sheets(sSheetName).Select
On Error GoTo 0
End Sub
...but it doesn't work because it is seaching for a worksheet called "today()"
can anybody help - aLso if possible I wud like a msg box telling the user
that one hasn't been found with todays date if one not found
many thanks