Excel 2010 - VBA Code to update last Max value if source cell has formula linking to another cell
Can someone please help?
The following VBA code enters in cell C2 the max value ever entered in cell A2 which is a dynamic changing cell. In other words, cell A2 may have the value 2, then at another time it will the value 6, then 11... etc. The VBA code will write (for example) 11 in cell C2 if 11 was the last highest value used in cell A2.
The code works fine as long as the dynamic value is entered manually in cell A2. However, if cell A2 has a formula pointing to another cell (in this example, pointing to cell A6) to retrieve the dynamic value then the VBA code will not update the max value in cell C2.
How can the following VBA code be made to work with a formula in cell A2? NOTE: the code will work with the formula if I double click in the cell A2 and then press Enter. This will update the cell C2 correctly.
Please see attached file.Please Login or Register to view this content.
Bookmarks