Group,
I'll ask this a different way with more detail. I have a For.....Next loop that goes from row 46 to some unknown number less than 2000. I increment a counter that moves me down the first column of the spreadsheet. When a logical condition is met, I compare the cells (one for one) in that row with the cells on another sheet (one for one) in the same row. Everything here works fine. The problem I'm having is one of efficiency. The row I'm on can have a variable number of cells with data. I want to find the last cell in the row that has data. I want to save this number to a variable. Presently when I'm comparing cells within the row, once I get to the end of the data in the row, the comparing continues until column 52, at which the process begins again. Note that a row can have cells with no data in them before the last cell with data. Some rows can have 20 plus cells with no data in either worksheets cells for the row I'm working in. So there is 20+ rows of needless comparing. Its probably still clear as mud, but hopefully I can get something. Oh, BTW, everyone responding in this group have been professional and educating. Thank you for all your assistance.
A budding VBA programmer..........
Tony
Bookmarks