I am using a login form to customize which sheets to display based on who logs in. It works fine (though I know it's not the cleanest code) but if another workbook is open, I get "Subscript out of range." It appears to me that it is trying to find worksheets in the already open workbook instead of the one that is being logged into.
Instead of telling users they have to close all open workbooks before opening this one, is there a way to handle this error?
Code is below:
![]()
Please Login or Register to view this content.
Bookmarks