Hello All,
I can use the following code to set a range where I look to see if a string is within another workbook
Set rcell = Workbooks("WestArea2003.xls"
.ActiveSheet.Range("B:B"
.Find(what:=blah, lookat:=xlPart, searchorder:=xlColumns)
Then i can say If rcell Is Nothing Then...
Else....
But now that i try to use the same thing to see if a worksheet is within a workbook, it doesnt work
Set rcell = Workbooks("WestArea2003.xls"
.Worksheets("Nonexistant worksheet"
So is there anyway to apply the same principle to set a worksheet as a range and then test to see if it is Nothing or Not Nothing, thanks!
I can use the following code to set a range where I look to see if a string is within another workbook
Set rcell = Workbooks("WestArea2003.xls"
Then i can say If rcell Is Nothing Then...
Else....
But now that i try to use the same thing to see if a worksheet is within a workbook, it doesnt work
Set rcell = Workbooks("WestArea2003.xls"
So is there anyway to apply the same principle to set a worksheet as a range and then test to see if it is Nothing or Not Nothing, thanks!