After sorting, I still have many blank cells listed before my data, even though supposedly, when you sort, it's suppose to remove them. I've found a crude way to get around the issue, but I'm stuck because of my limited VBA skills.
So BS4:BS51 is where my data is sorted. Depending on what data is sorted at the time, I can have many blank cells in this range, which is very frustrating. So I have added a formula to BT3 that tells me how many in this range are blank or "supposedly" blank using this simple formula:
=COUNTBLANK(BS4:BS51)
Now I just need a simple vba code that will automatically clear the contents of these first cells in this range based on the number from BT3.
Example:
For my current sort, the value at BT3 is 22. So I need Excel to ClearContents for cell range BS4:BS26, which is 22 cells. But I need it to do it dynamically, since there will be many Sorts with differing amounts of "supposedly" blank cells. Fortunately after sorting, all the blank cells are always listed before the data, so it's just a matter of clearing content for the first "supposedly" blank cells.
Bookmarks