Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Wed, 18 Jun 2008 13:18:00 -0700, Gary''s Student
wrote: Thank you Peter & Chip: I am trying to help a buddy speed up a very slow macro. Part of her macro locates the value in the last cell in a range. She does this by looping thru the range. This MIGHT be necessary if the range is dis-joint. If, however, the range is not dis-joint (so there are no commas in the address), then no loop should be needed. She can just SPLIT() the address on colon and pickup the second element as the address of the terminal item. You could also get the address of the last cell in a contiguous range with : debug.pring rg(rg.rows.count,rg.columns.count).address Or, if there are multiple areas: rg.Areas(rg.areas.count)(... --ron |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks!
-- Gary''s Student - gsnu200793 "Ron Rosenfeld" wrote: On Wed, 18 Jun 2008 13:18:00 -0700, Gary''s Student wrote: Thank you Peter & Chip: I am trying to help a buddy speed up a very slow macro. Part of her macro locates the value in the last cell in a range. She does this by looping thru the range. This MIGHT be necessary if the range is dis-joint. If, however, the range is not dis-joint (so there are no commas in the address), then no loop should be needed. She can just SPLIT() the address on colon and pickup the second element as the address of the terminal item. You could also get the address of the last cell in a contiguous range with : debug.pring rg(rg.rows.count,rg.columns.count).address Or, if there are multiple areas: rg.Areas(rg.areas.count)(... --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I get rid of these colons | New Users to Excel | |||
Excel 2007 Format issue, colons being substituted for decimals. | Excel Discussion (Misc queries) | |||
time entry with am/pm and no colons | Excel Discussion (Misc queries) | |||
insert colons in time automatically when input to cell | Excel Worksheet Functions | |||
Excel formula, 2 colons query to sum values in colon 3 | Excel Programming |