Hi,
Is there a way to handdle the error when I command
and there is no sheet called Test?Sheets("Test").Activate
I would rather a solution that didnt include a for ... each passing through each sheet in the workbook if its possible.
Hi,
Is there a way to handdle the error when I command
and there is no sheet called Test?Sheets("Test").Activate
I would rather a solution that didnt include a for ... each passing through each sheet in the workbook if its possible.
Best Regards,
Carlos Paleo.
To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.
If Debugging is harder than writing a program and your code is as good as you can possibly make
it, then by definition you're not smart enough to debug it.
http://www.mugrs.org
Try this.
Dim WS As Worksheet On Error Resume Next Set WS = Sheets("Test") On Error Goto 0 If WS Is Nothing Then 'No Sheet Else 'Sheet Exists End If
Hi Jake,
great, worked just fine!
Thanks a lot!
Best Regards,
Carlos Paleo.
To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.
If Debugging is harder than writing a program and your code is as good as you can possibly make
it, then by definition you're not smart enough to debug it.
http://www.mugrs.org
You're Welcome
Take Care