Good afternoon,
This is my first post here, but I have relied upon this forum for solutions to several other problems. So, gratitude is due for your indirect help on prior issues. Now hopefully you can help me directly with my current issue.
I have a spreasheet and macro which takes bulk data, filters it and pastes it into different tabs based on category, and then subtotals that data before copying and pasting all of the subtotals onto another sheet. The problem I am having is that occasionally there is no data within a certain category, so the correponding sheet will be blank (except for headers). When the macro runs, I get a "run-time error '1004'" when it attempts to sub-total the data on the blank sheet. Is there a way to skip this step of the macro if there is no data within a certain sheet/range?
If it helps, here is the portion of VBA language where it hangs-up:
Please Login or Register to view this content.
Bookmarks