Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I don't know why I can't pass thru this code. I know it's fairly straight forward but everytime I run it's always giving the error "Object required" even if my active workbook contains the sheetname "mydata". Can you tell me what's wrong with this code. All I am trying to do is to check if a sheetname exists. On Error Resume Next Set x = ActiveWorbook.Sheets("mydata") If Err = 0 Then MsgBox "Passed " Else MsgBox ActiveWorkbook.Name & " - " & Error(Err) MsgBox "Sheet does not exist" End If Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error dialog box meaning and how to find error | Excel Worksheet Functions | |||
Code to find code | Excel Discussion (Misc queries) | |||
help with this error-Compile error: cant find project or library | Excel Discussion (Misc queries) | |||
How can I still go to the error-code after a On Error Goto? | Excel Programming | |||
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) | Excel Programming |