Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 -----Original Message----- 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 . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Naming Ranges | Excel Discussion (Misc queries) | |||
naming tabs automated | Excel Discussion (Misc queries) | |||
naming ranges | Excel Worksheet Functions | |||
naming ranges | Excel Worksheet Functions | |||
naming ranges | Excel Worksheet Functions |