Select Case dynamic range

Budge

Board Regular
Joined
Aug 24, 2002
Messages
75
Greetings,
I am in spot of bother.I have 13000 lines in which there will be various ranges that need to be evaluated.The ranges are broken up by a blank line.The ranges are defined by duplicates in Column C.There may be no duplicates,1,2,3,4 etc.I need to establish the range and then loop through this dynamic range doing stuff through Select Case.Once I have evaluated all the cells in this range,move to the next range and evaluate it.
Thanks
Budge
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Intended as humor.


You have a detailed inquiry, a good example of how to post.

However, this seems to be the sort of challenge that obligates a dialog between the programmer, and a "client"; which could take several back-and-forth communications to get right.

The "13000 lines" detail is appreciated; perhaps this can't be done in program memory perhaps 'scratch worksheets' may be created.

(This is a good time for my two monitors; one for my response, one to show your request...)

What is the targeted Excel version?
Only one column to analyze, correct? Which column?
"The ranges are defined by duplicates in Column C" could you explain?


Defining the tasks:

Remove duplicates (Prompt user, regarding sound-alikes?)

Starting at end of worksheet, define the first range.

"Do stuff" (This is your responsibility, or do you plan to task the programmer after they 'buy-in' to this project?)

Find next range.
"Do Stuff".
Repeat until top of sheet.
 
Upvote 0
Another thought:

If this is simply a one-shot/infrequent deal, the user could define the range by selection, start the macro, and "do stuff" on the selected area.

This would cut back on the coding.
 
Upvote 0
Hey Steve,
I will get back to later with more
details.Essentially it is dynamic ranges that need to be stored and evaluated.Then move to next range.The duplicates are names of suppliers.The do stuff is for me to work out.
Later
Budge
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,048
Members
448,543
Latest member
MartinLarkin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top