LokiOfGameSlave
Technical User
Otay ... I've searched high and low for the answer to this and haven't been able to come up with the last bit of coding.
Using Excel 97.
A B
1 Client1 George
2 Client2 Peter
3 Client3 Henry
.
.
.
The user enters records in to the spreadsheet / database. There is no set amount of records that the user will enter. What I want to do after the user has finished entering the data is to go the the last row in the database, select the full row and then highlight up to row 1.
The coding that I have right now is incomplete as I have no clue what to use to get the last little bit.
Selection.End(xlDown).Offset(1, 0).Select
Selection.Rows.EntireRow.Select
The above will move the cursor to the last row and Select / Highlight the Row. Now what do I have to add to get it to highlight the last row and then continue up to Row 1, thereby highlighting the full range?
TIA,
-Loki
Pronunciation: 'lO-kE
Function: noun
Etymology: Old Norse
Definition: a Norse god who contrives evil and mischief for his fellow gods
Using Excel 97.
A B
1 Client1 George
2 Client2 Peter
3 Client3 Henry
.
.
.
The user enters records in to the spreadsheet / database. There is no set amount of records that the user will enter. What I want to do after the user has finished entering the data is to go the the last row in the database, select the full row and then highlight up to row 1.
The coding that I have right now is incomplete as I have no clue what to use to get the last little bit.
Selection.End(xlDown).Offset(1, 0).Select
Selection.Rows.EntireRow.Select
The above will move the cursor to the last row and Select / Highlight the Row. Now what do I have to add to get it to highlight the last row and then continue up to Row 1, thereby highlighting the full range?
TIA,
-Loki
Pronunciation: 'lO-kE
Function: noun
Etymology: Old Norse
Definition: a Norse god who contrives evil and mischief for his fellow gods