Hi guys,
I need suggestions / assistance on sorting named ranges into a given order.
I have a raw data sheet that contains data for a given week - monday to sunday
The problem with this raw data is that it is not in the correct order. Data has been mistakenly exported out of order.
a quick example of this:
Vegetables-
..........Corn
..........Pear
..........Orange
Fruit-
..........Apple
..........Carrot
..........Lettuce
The data is out of order - the fruit is not listed correctly under the fruit similarly with vegetables
The goal of my macro is to do the following
Vegetables-
..........Corn
..........Carrot
..........Lettuce
Fruit-
..........Apple
..........Pear
..........Orange
A macro I already have goes through this raw data sheet and names the ranges appropriately by looking for top and bottom borders then saving those rows between Cols A to Col H as a named Range. The name of found range = the top left cell value within that named range
I also have 'reference' style worksheets. these sheets contain a list of data on them, appropriate to this it contains a list of names which correlate to the named ranges found on the raw data sheet above
this reference sheet should be used by the macro as a guide to which the macro copys that named range from the raw data sheet starting at the first name found on this sheet
Please see the attached workbook which clarifies what i've tried to explain above. Im open to suggestions on a different method for doing this - perhaps without using named ranges tho im not aware of any other methods that would achieve this.
Thanks heaps
Bookmarks