Gustav Brock
Gustav at cactus.dk
Thu Feb 2 11:30:38 CST 2006
Hi John To find the last filled cell (row) in a column, this is a simple method: lngRow = Worksheets(1).Columns("K").Find("*",,,,,0).Row A range can be part of or derived from another range, thus a column can be a range as well. You can iterate a range as you like (row by column or vice versa) and evaluate IsEmpty(rng.Value) for each cell (a cell can be a range as well). Ranges call for great fun! /gustav >>> jwcolby at ColbyConsulting.com 02-02-2006 18:00:56 >>> Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? John W. Colby www.ColbyConsulting.com