Hello -- I recently was helped to construct a macro to Compare and Prepare to Correct two columns of numbers with some cells that didnt match. The Macro adds blank cells to the column adjacent to the mismatched cell and proceeds on to the end of the columns. It works great ( Thank You ) when the columns are off just because of a missing number from sequence. BUT, Occasionally the program freezes Excel and the Macro Never completes. Analyzing the problem, I find that its where Occasionally my imported column of numbers will have a Number WAY WAY out of Sequence. This Causes it to attempt to add too many cells to the opposite column and runs excel out of rows needed to complete its task.
Rather than mess with the Previous Macro ( which I understand and can modify to my needs ) , I think another Macro to Search for Errant Numbers would be the best solution to run on my imported column before running the other macro.
I need a Macro that would run from the active cell on the column that cell is in. I need the Macro to stop where any number is NOT smaller than the number in the cell below it. That way I can correct the gross errors and restart the macro until I reach the end of the column. While the Error Numbers I search for could be a Grossly Larger or Smaller Number than belongs in the Group, the place it stops at will always be within a cell of the error I need to correct.
Then when I run the first above mentioned macro, it can perform as designed.
As a Novice -- it looks like a simple if then statement but my problem comes when I try to add a loop and declare variables to keep it going.
Thank You for Looking -- any ideas appreciated.
Rather than mess with the Previous Macro ( which I understand and can modify to my needs ) , I think another Macro to Search for Errant Numbers would be the best solution to run on my imported column before running the other macro.
I need a Macro that would run from the active cell on the column that cell is in. I need the Macro to stop where any number is NOT smaller than the number in the cell below it. That way I can correct the gross errors and restart the macro until I reach the end of the column. While the Error Numbers I search for could be a Grossly Larger or Smaller Number than belongs in the Group, the place it stops at will always be within a cell of the error I need to correct.
Then when I run the first above mentioned macro, it can perform as designed.
As a Novice -- it looks like a simple if then statement but my problem comes when I try to add a loop and declare variables to keep it going.
Thank You for Looking -- any ideas appreciated.