I have be attempting to sort a range of variable size (unknown until prior vb code is run). The sorting need to be completed on each of several sheets. The sheet name is passed to the module when the subroutine is called. It seems to sort the first sheet fine, then the range size get fixed for subsequent sheets and it only sorts the fixed portions. I want the range size to be adjusted to each sheets data. Also, within the columns there are sometime blanks but there is a total in the last column. This routine only sorts those columns before it runs into one that is blank leaving the totals column unsorted. Code is below - any help is much appreciated. I must be doing something obviously wrong - hope you can see it.
I started from code someone else developed thinking I could modify for my purposes:
![]()
Please Login or Register to view this content.
Bookmarks