travelingwilly
New Member
- Joined
- Jun 19, 2002
- Messages
- 24
Hello Folks
I wish to read a spreadsheet that may have blanks. I am able to read to the end of a Sheet by using....
With Sheets("PLANBUILD").Range("a1", Range("a1").End(xlDown))
For tst = 1 To .Rows.Count
... do work work with .cells(tst,1 ) ....
Next tst
That works great if there are no blanks in col A in any rows. But Now I have a formated sheet. where I have a code on line 1 cell 1 and data line 2 ,3 4, 5 but not in row 1. The abouve will go to the first record and stop. How can I find the rowcount of active rows or somthiong like that
<table border=1>
example
<tr><td>parta</td><td>descr</td></tr>
<tr><td></td><td>information 1</td></tr>
<tr><td></td><td>information 2</td></tr>
<tr><td></td><td>information3</td></tr>
<tr><td>partb</td><td>descr</td></tr>
<tr><td></td><td>information 1</td></tr>
<tr><td></td><td>information 2</td></tr>
<tr><td></td><td>information3</td></tr>
I wish to read a spreadsheet that may have blanks. I am able to read to the end of a Sheet by using....
With Sheets("PLANBUILD").Range("a1", Range("a1").End(xlDown))
For tst = 1 To .Rows.Count
... do work work with .cells(tst,1 ) ....
Next tst
That works great if there are no blanks in col A in any rows. But Now I have a formated sheet. where I have a code on line 1 cell 1 and data line 2 ,3 4, 5 but not in row 1. The abouve will go to the first record and stop. How can I find the rowcount of active rows or somthiong like that
<table border=1>
example
<tr><td>parta</td><td>descr</td></tr>
<tr><td></td><td>information 1</td></tr>
<tr><td></td><td>information 2</td></tr>
<tr><td></td><td>information3</td></tr>
<tr><td>partb</td><td>descr</td></tr>
<tr><td></td><td>information 1</td></tr>
<tr><td></td><td>information 2</td></tr>
<tr><td></td><td>information3</td></tr>