I'm trying to write some code that determines whether a worksheet exists and directs the user to different user forms depending on whether it does or it doesn't. The trouble is I can't seem to find a way of checking the existence of a sheet in a workbook. HELP!
The code I am using is something like
The IsObject doesn't work, along with many other variations I have tried.
I'm sure someone must have done this before ...
Andy
The code I am using is something like
Code:
Private Sub WorkSheetCheck()
If IsObject(Sheets("DataEntrySheet") Then
ReminderForm.Show
Else
DataEntryForm.Show
End If
End Sub
The IsObject doesn't work, along with many other variations I have tried.
I'm sure someone must have done this before ...
Andy