Automated Naming of ranges...

G

gman

Hi,

Can someone suggest which of the do...loop
structures would work best for the following.

I have a big chunk of data that I need to automatically
name into same-sized ranges (i.e. 5 columns by 5000 rows
where i would want to name 100 ranges comprised of 5
columns by 50 rows.) Each range name is named after the
upper-left cell the first 50 lines.

Now given that there are some blank spaces in my table, i
was unable to automate a macro to go until it found a
blank space because it would end the range naming function
too early.

help...

thanks,

Gman
 
S

Seth

Well, if your cells are contiguous (i.e., an entire row
or column does not separate them) you can loop using the
CurrentRegion property of your data chunk (e.g., use the
total number of rows in the CurrentRegion to be you loop
limit).

Seth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top