Hello there,
I have recorded the following code that sorts from left to right. How do you make the hard coded ranges ("A1:EX1") (columns) and ("A1:EX1193") (rows) variable?
Regards,Please Login or Register to view this content.
shinobi
Hello there,
I have recorded the following code that sorts from left to right. How do you make the hard coded ranges ("A1:EX1") (columns) and ("A1:EX1193") (rows) variable?
Regards,Please Login or Register to view this content.
shinobi
Great question. In what way do you want to make them variable? Specify in inputbox? Until the last used row and the last used column?
Hi stnkynts,
Until the last used row and the last used column.
There are many variations to obtain the last used row and the last used column. I will show you the two more common ways, one for last row, and the other for last column.
With that in mind you should be able modify the 2 lines in your code accordinglyPlease Login or Register to view this content.
Please Login or Register to view this content.
Thanks for the tips stnkynts. I should be able to do it now. Sort left to right seems a bit more tricky than top to bottom.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks