DistantDrums
New Member
- Joined
- Jun 13, 2011
- Messages
- 7
Hi, I'm a new member having an issue with a custom sort that I've recorded to a macro. Btw, I'm not too experienced with Excel (much less, macros), but I've managed to get almost what I want. Here's my hopefully easy-to-fix problem:
I have five columns within an ever-expanding, regularly-updated document, and I want to create some buttons that will execute various custom sorts, some with several levels, etc. Well, that part was easy. I recorded the first process and made a button for the first custom sort. Works perfectly... for the way everything is at the moment. The problem is, as soon as I add any other row(s) at the bottom, the recorded macro doesn't "see" them, and pressing the button will fail to include and sort the new data.
I thought I had found the solution when I recalled that I had forgotten to wait until recording had begun to do the Select All (by clicking the top-left corner of the document/cells). But even when I do start the recording before clicking the Select All, the macro will still only sort what's currently there, and will be impotent to deal with anything added subsequently.
In other words, when I select "all" in a document that happens to currently have 50 rows, Excel seems to be interpreting that as meaning "select 50 rows" rather than "select all" (meaning, "all, regardless of the figure"). How do I get it to include newly added rows in the sort, rather than being stuck on the fixed range the document had at the time of recording? Thanks for any insights.
- Bob K.
I have five columns within an ever-expanding, regularly-updated document, and I want to create some buttons that will execute various custom sorts, some with several levels, etc. Well, that part was easy. I recorded the first process and made a button for the first custom sort. Works perfectly... for the way everything is at the moment. The problem is, as soon as I add any other row(s) at the bottom, the recorded macro doesn't "see" them, and pressing the button will fail to include and sort the new data.
I thought I had found the solution when I recalled that I had forgotten to wait until recording had begun to do the Select All (by clicking the top-left corner of the document/cells). But even when I do start the recording before clicking the Select All, the macro will still only sort what's currently there, and will be impotent to deal with anything added subsequently.
In other words, when I select "all" in a document that happens to currently have 50 rows, Excel seems to be interpreting that as meaning "select 50 rows" rather than "select all" (meaning, "all, regardless of the figure"). How do I get it to include newly added rows in the sort, rather than being stuck on the fixed range the document had at the time of recording? Thanks for any insights.
- Bob K.