Am writing a simple function to test of the existence of a worksheet in the current workbook
The code below evaluates to false each time even though WsName exists in the workbook wb.
A little investigation reveals this is because the Exit Function statement isn't causing an exit of the Function.![]()
Please Login or Register to view this content.
My rewrite is:-
The rewrite works, just wondered why the Exit Function doesn't work in scenario 1?![]()
Please Login or Register to view this content.
Bookmarks