I am trying to do similar operations on several different worksheets in a workbook via a macro. The operation for each sheet is being done via a 'Do Until' loop.
The first loop operation starts with this line:
Do Until Cells(Tomorrow_row, 1).Text = "#VALUE!"
The second loop:
Do Until Cells(Tomorrow_row, 13).Text = "#VALUE!"
The third loop:
Do Until Cells(Tomorrow1_row, 1).Text = "#VALUE!"
The first two loop operations execute without incident. The third crashes the macro with:
"Run-time error '1004':
Application-defined or object-defined error"
All of the microsoft help, which is of no help whatsoever, as usual, says this is an error which doesn't map to any defined error. Gee, thanks Billy.
The Debug key highlights the third Do Until line. I've checked my spelling, syntax and the variable definition. I don't know what else it could be.
The first loop operation starts with this line:
Do Until Cells(Tomorrow_row, 1).Text = "#VALUE!"
The second loop:
Do Until Cells(Tomorrow_row, 13).Text = "#VALUE!"
The third loop:
Do Until Cells(Tomorrow1_row, 1).Text = "#VALUE!"
The first two loop operations execute without incident. The third crashes the macro with:
"Run-time error '1004':
Application-defined or object-defined error"
All of the microsoft help, which is of no help whatsoever, as usual, says this is an error which doesn't map to any defined error. Gee, thanks Billy.
The Debug key highlights the third Do Until line. I've checked my spelling, syntax and the variable definition. I don't know what else it could be.