Dan Wilson
Well-known Member
- Joined
- Feb 5, 2006
- Messages
- 507
- Office Version
- 365
- Platform
- Windows
Good day. I am running Excel out of Office365 (updated) on Windows 10 Home. I have a worksheet that contains 2980 Rows with Columns A through H containing data. Periodically, I add more records to the worksheet. There are 6 Macros that I use to sort the data. There are currently formulas in the Macros that search from Row 2 through Row 2980. Each time that I add more records to the worksheet, it is necessary to edit the Macros to alter the search formulas to search ALL of the Rows.
Here is an example of the search :
ActiveWorkbook.Worksheets("50-69").Sort.SortFields.Add2 Key:=Range("B2:B2980" _
), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
Is there a way to identify the last used Row instead of editing the Range? Thank you for any help.
Dan Wilson...
Here is an example of the search :
ActiveWorkbook.Worksheets("50-69").Sort.SortFields.Add2 Key:=Range("B2:B2980" _
), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
Is there a way to identify the last used Row instead of editing the Range? Thank you for any help.
Dan Wilson...