i have the following as a private code for a sheet. what it does is copy and paste tables from a hidden sheet, but only if the user chooses "yes". it works great, but even when i'm working on completely unrelated sheets, occasionally VBA will pop up the debug error. clicking "end" makes everything work fine again, until it pops up again. i'm hoping someone can help me figure out why i'm getting a debug error...i was thinking at first it might be related to worksheet_change but using _calculate or _selection stops the macro from working entirely.
thanks. the "debug" error always shows up on the first If InStr...line. if i delete that line, it shows up on the second instance, and so on
Bookmarks