wageslave101
Board Regular
- Joined
- Jul 18, 2007
- Messages
- 154
Hello again
I have an Excel sheet with over 30,000 rows of data in it. Presently it has several Autofilters, one of which, in row C, sorts the records according to username.
I am wanting to then select a range that covers the first entry and the last entry that matches the users name.
The reason for this is that once sorted by the autofilter the range varies every day depending on the user. For example user1 that I just checked, under the autofilter they have 112 entries with in a range
To make dealing with the data easier, the goal was to run a macro from a new workbook, that opens the large sheet, uses the autofilter to sort by the user, then copy the entire range displayed.
I've got it opening, sorting by user but I'm not sure how to automate determning the first row in which the users name appears and the last. So that the macro/vba can do this each day without someone having to choose the range.
Any suggestions?
Sincerely,
WageSlave101
I have an Excel sheet with over 30,000 rows of data in it. Presently it has several Autofilters, one of which, in row C, sorts the records according to username.
I am wanting to then select a range that covers the first entry and the last entry that matches the users name.
The reason for this is that once sorted by the autofilter the range varies every day depending on the user. For example user1 that I just checked, under the autofilter they have 112 entries with in a range
Code:
Range("C14163:C22567").Select
To make dealing with the data easier, the goal was to run a macro from a new workbook, that opens the large sheet, uses the autofilter to sort by the user, then copy the entire range displayed.
I've got it opening, sorting by user but I'm not sure how to automate determning the first row in which the users name appears and the last. So that the macro/vba can do this each day without someone having to choose the range.
Any suggestions?
Sincerely,
WageSlave101