Hi,
I need a macro that can change the value of a specific cell to all of the values in the rows beneath it, stopping when it reaches a blank cell.
Each time the cell is changed, the spreadsheet needs to calculate (equivalent of pressing F9) before moving onto the next row.
In my example, cell "D9" (which has a hardcoded value of 1) would need to change to each of the values in rows beneath it (D10:D59, each of which has the numbers 1-50 in them) and at each point calculate the spreadsheet. Ideally, the code would stop at whatever the max number in the rows beneath it is / stop when it reaches a blank cell.
Thank you so much!
I need a macro that can change the value of a specific cell to all of the values in the rows beneath it, stopping when it reaches a blank cell.
Each time the cell is changed, the spreadsheet needs to calculate (equivalent of pressing F9) before moving onto the next row.
In my example, cell "D9" (which has a hardcoded value of 1) would need to change to each of the values in rows beneath it (D10:D59, each of which has the numbers 1-50 in them) and at each point calculate the spreadsheet. Ideally, the code would stop at whatever the max number in the rows beneath it is / stop when it reaches a blank cell.
Thank you so much!