sgreenwood
Technical User
I have a report that I create daily that requires naming several ranges. I am trying to figure out a macro that would automate the naming of the ranges, but so far I’m having NO luck at all!
Obviously the area of these ranges changes daily...today range A is 4000 rows, tomorrow maybe 4250, etc. Does anyone have any idea of how I could use a macro to automate this process?
I’m thinking there must be some way to say start here…and include all data until field "X" changes then create range name...now continue on with next section until the field changes again...and continue until all ranges are named.
The data is structured as follows:
“Grower Type”, “Commodity”, “Variety”, “Grower Number”, “Daily Units”, “Daily FOB”
I want to create ranges that include the columns “Variety” through “Daily FOB” and for each “Grower Type”.
For example Range A = Company Farmed
Range B = Outside Growers
Range C = Joint Venture
To be honest with you….I am completely lost trying to figure this one out. (and have probably confused everyone else by now!!)
Any ideas anyone might have about this would be GREATLY appreciated.
Thanks,
Steve
Obviously the area of these ranges changes daily...today range A is 4000 rows, tomorrow maybe 4250, etc. Does anyone have any idea of how I could use a macro to automate this process?
I’m thinking there must be some way to say start here…and include all data until field "X" changes then create range name...now continue on with next section until the field changes again...and continue until all ranges are named.
The data is structured as follows:
“Grower Type”, “Commodity”, “Variety”, “Grower Number”, “Daily Units”, “Daily FOB”
I want to create ranges that include the columns “Variety” through “Daily FOB” and for each “Grower Type”.
For example Range A = Company Farmed
Range B = Outside Growers
Range C = Joint Venture
To be honest with you….I am completely lost trying to figure this one out. (and have probably confused everyone else by now!!)
Any ideas anyone might have about this would be GREATLY appreciated.
Thanks,
Steve