I have macro that steps through a bunch of saved ImportsExports. My problem is that sometimes the spreadsheets will have more than one worksheet. I added a new line to my macro to begin importing the second worksheet, however, it doesn't always exist. When the second sheet doesn't exist I get an error stating that "WORKSHEET_2$" is not a valid name.
Is there anyway I can just skip that? My only option is to "Stop All Macros".
I have SetWarnings = NO already but that isn't helping.
I'm hoping I don't have to redo my macro all in VBA.
But if I do have to go vba, is there an easy way to check if a worksheet exists?