powercell99
Board Regular
- Joined
- May 14, 2014
- Messages
- 75
Hi,
I have a table: wrksht.ListObjects("DataTable1") , its table range is A1: X2000. All cells have data validation pop instructions on how to correctly enter data into each cell. After the table is populated by the user i want to re-size the table based on a lastrow variable identifying ONLY the last cell in column D that has an entry value. but every code i try erroneously identifies the last row that contains data validation, and not the last row with an entry value.
I've tried:
ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).row
and
Cells(Rows.Count, 1).End(xlUp).Row
But they get stuck on the data-validation.
Ideally I'd like to delete all the data validation below the last row of data entry and re-size the table. Any suggestions?????
I have a table: wrksht.ListObjects("DataTable1") , its table range is A1: X2000. All cells have data validation pop instructions on how to correctly enter data into each cell. After the table is populated by the user i want to re-size the table based on a lastrow variable identifying ONLY the last cell in column D that has an entry value. but every code i try erroneously identifies the last row that contains data validation, and not the last row with an entry value.
I've tried:
ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).row
and
Cells(Rows.Count, 1).End(xlUp).Row
But they get stuck on the data-validation.
Ideally I'd like to delete all the data validation below the last row of data entry and re-size the table. Any suggestions?????