The * is a wild card - find any entry
As the search is coded to find previous it finds the last cell that has an entry in it
The following line of code searches by row until it finds that last entry.
Populates the lLR variable with the row number of the row the last entry was found in.
If I knew that column A would always have an entry in the last used row I would have used
I included the On Error Resume Next command to ignore the error that gets generated when doing a search on a blank sheet, and the On Error Goto 0 so that any errors generated after the On Error Goto 0 command are handled in the normal Excel VBA manner
This following command is to find the last used column - read above instructions subsituting column for Row.
Bookmarks