Hello everyone!
Been going bald trying to figure this out, I hope you guys can show me where I am tripping up.
TLDR: Trying to select columns as multiple variables that were assigned from named ranges causes much grief!
-------------------------------------------
What I am "trying" doing:
- I have a string array of worksheet names.
- named ranges (in this particular exercise) among several other functions are based on this array.
- I use these named ranges to manipulate data... In this case, I am selecting two ranges that are side by side and sort in descending order based on one of the named ranges.
I recorded the macro that selects two columns and then sort it in descending order. Since there are more columns of such groupings, I try to re-assign the columns as variables to loop through this process by have encountered all sorts of errors. Internet, can you help me? My suspicion is that my variable assignments are wrong but am not sure how to test.
Point 1: Things I have tried below are commented out. None of these work.
Point 2: The strings are preceded by a "_" because my named ranges start with numbers which I found out (after a lot of time and frustration) is a big no-no for named ranges and to properly reference the named ranges requires that I had the underscore characters.
Cheers,
MD
Bookmarks