Hello Excel helpfuls!
I have created a macro which takes a large amount of data from one worksheet, filter it by each value in a column one at a time and copy the filtered results over to various sheets.
Sheet 1 is "Input Data" and sheets 2-36 are various sheets based on the data in "Input Data" column B.
My problem arises if the filter returns no values. This creates an issue during the program running because it tries to copy 0 cells over to the other sheet. This always causes the program to crash. Is there any way to fix this?
I have a macro that runs the macro for each sheet and have just been commenting off the ones that are full, but I would love a way for it to be done automatically. Here is an example of one of the macros:
Also a way to know when it's more than so many lines so I can split it in to two sheets would be greatly helpful!Please Login or Register to view this content.
I hope I made that clear. I haven't had my coffee yet this morning!
---------- Post added at 12:53 PM ---------- Previous post was at 09:21 AM ----------
I didn't read the ToS for this forum but I'm going to give myself a bump here. Any help would be greatly appreciated!
Bookmarks