Assuming that you do not ALWAYS start your tables in Row 1 (for instance if you want totals displayed above your table)
1. table must start in Column "A"
2. there must be a blank row ABOVE the first row of your table
3. your table must have contiguous data, ie no blank rows or columns within your table.
Here is a function that returns the first row in your table
Code:
Function HeaderRow() As Long
HeaderRow = Cells(Cells.Rows.Count, 1).End(xlUp).CurrentRegion.Row
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.