yep - that code alteration fixed it. Hooray. So now I guess the trick is to code in a filter via a dialog box that asks the user (me) what sites are to be included, get VBA to pull out the max and average of every column, then plot it. I guess this is all possible, with a bit of playing around and associated learning on my part. Your thoughts?
This would be a good time to open that Walkenback VBA power programming manual that's been sitting under my alarm clock for the past 6 months.
Or could just add subtotal functions with max and average enabled, then plot those results. (reason I use subtotal is in case I want to filter some data out via autofilter, and have graph adjust accordingly).
I guess there's no need to actually dump the data into a new sheet at all. This whole thing could run off a criteria box on the worksheet, with the results directly updating a graph on a new sheet. Way cool, and super fast.
Hey...Not a bad method of troubleshooting for a beginner...putting lots of 'ones' in to see if it was the enhanced 2007 functionality tripping the code up.
I still have to get your MS Query tip to work. Tried it on my work PC that has excel 2003, and got tripped up somewhere. 2007 filepath looks a little different, so not sure as yet how to find equivalent dialog boxes. But have purchased a book that has some info on MS query in excel 2007.
Thanks Fazza. So what kind of work do you do anyway, and how do you find time to do it and answer posts at the same time?