Hi Group,
I hope you don't my me asking this as I've spent hours trying to solve this and you might know a quick and easy way. I've scoured Google and I've visited nearly every link that comes up on page, so have tried my best.
I have become good at finding a macro and adjusting but this solution is tricky and I can't seem to solve it.
I the spreadsheet in the attached image.
What I want to achieve is select B8:J25, and sort on the last column that contains a value (in the example, this is column J25).
The problem is, each month, I will add another 2 columns, so next month I will need to sort B8:L25 etc.
If I record a Macro, I get this:
What I ideally would like to be able to do is the same, but the part in red to be dynamic, so that the macro selects cell B8, and then does something like:![]()
Please Login or Register to view this content.
and then runs the first macro, but with the dynamic column. One thing that is constant is that rows B8:B25 will always be the vertical selection - it is just the horizontal one I am stuck with.![]()
Please Login or Register to view this content.
Any help greatly appreciated, my brain is going into meltdown.
(Just updated my post with the code tags, apologies).
Best Regards,
Paul
screenshot.jpg
Bookmarks