I refresh the data in my sheet frequently, and use a macro to sort it after importing.
When I Record the macro, it works the first time, but it has hardcoded Ranges.
Note that the Add Key and SetRange coordinates are fixed. The bottom Row will be incorrect the next time because there may be more, or fewer, imported rows.
What code do I need in the blank row to sense the bottom row, and how do I use it for the Add Key and SetRange specifications?
Any help would be very appreciated.
Moderators Note:- Please follow Forum Rule #3 and use code tags.
- Added this time, but please use them in the future…Thanks.
Bookmarks