Coming in from CSV files would make no difference, as long as things end up in the correct columns and that column F contains at least a few numbers.
And even in the worse case, if column somehow was converted to all text, I am not able to create this error using version 4.2.
Getting to line 600 means that it should be returning a formula to cells B9 & B10, and the problem occurred when it started working on the Region. Do the results in B9 & B10 look reasonable?
Next thing to look at, in the VB Editor use View Immediate Window, if you have run the routine multiple times, scroll to the bottom. You should see something that looks like the following:
This will tell you which sheets (if any) it found to use for the Region calculation.
If looking at those two things do not provide any clues, the next step is to add another debug.print to the code. Go to the VB Editor, and just above line number 650 you will see this code:
Change it by adding these 2 lines:
After adding those lines, run the routine again and see what shows up in the Immediate Window.
Meanwhile, I have an enhanced version I am excited to tell you all about. But, I think you will be more enthusiastic about it after we fix this problem.
Bookmarks