Hi everyone.
I've an issue needing some help. I am trying to count the number of rows in a worksheet before copying the data over into an Access table. What I've tried so far is giving me an overflow issue - which makes me wonder if I'm just counting every single row in the worksheet, regardless of it containing data or not (that's a lot of rows...).
What I need to be able to do:
- Count rows in spreadsheet that have data in them. Some rows will have partial data, meaning that some cells in any given row will not be populated. The first row to not contain any data is considered EOF. And I will be using DAO for this.
I'll paste below my latest two attempts.
1)
Dim strStorage as integer
strStorage = CLng(xlsWST.Rows.Count)
2)
Dim strStorage as integer
strStorage = xlsWST.Range("Worksheet 1").Rows.Count
Thank you for any helpful input =).
-Tethys
I've an issue needing some help. I am trying to count the number of rows in a worksheet before copying the data over into an Access table. What I've tried so far is giving me an overflow issue - which makes me wonder if I'm just counting every single row in the worksheet, regardless of it containing data or not (that's a lot of rows...).
What I need to be able to do:
- Count rows in spreadsheet that have data in them. Some rows will have partial data, meaning that some cells in any given row will not be populated. The first row to not contain any data is considered EOF. And I will be using DAO for this.
I'll paste below my latest two attempts.
1)
Dim strStorage as integer
strStorage = CLng(xlsWST.Rows.Count)
2)
Dim strStorage as integer
strStorage = xlsWST.Range("Worksheet 1").Rows.Count
Thank you for any helpful input =).
-Tethys