I have 3 worksheets in an Excel workbook. Sheet1, Sheet2, and Sheet3 are identical in layout. I'm using Sheet3 to evaluate if the values in Sheet1 and Sheet2 are identical.
I'm having problems when attempting to compare two identical columns; Column A in Sheet1 and Column A in Sheet2. Column A in Sheet2 is a column with a series of text values. The cells in this column have the green arrow displayed in the upper left corner of the cell.
I have a procedure that loops through the cells in Sheet1, Column A changing the cell values to text via Selection.NumberFormat = "@".
In Sheet3, I have a formula comparing the cell values in Sheet1-Column A and the cell values in Sheet2-Column A, for this comparison the formula initially evaluates to "NO". However, after double-clicking a cell in Sheet1-Column A after the procedure runs, the formula updates to "" (meaning the values are equal)
Sheet1-Column A cell a1 value = 1234
Sheet2-Column A cell a1 value = 1234 (Green arrow in upper left corner)
Sheet3-Column A, cell a1 value = "NO"
After double-clicking cell a1 in Sheet1-Column A, the formula in Sheet3-Column A, cell a1 evaluates to "", meaning the values are equal. The green arrow is now displayed in the upper left corner of cell a1 in Sheet1-Column A)
What I would like to do via vba code is to duplicate the double-click mouse behavior to update the display in each cell so the green arrow will be displayed in the upper left corner of each cell in Sheet1-Column A