Hi,
I would appreciate some VBA help with code to copy a single cell (Q7) value to the first unused Row in column T when formulas on the worksheet recalculate.
The following code works fine for copying the cell value to the first unused Row in column T:
However, there must be another macro ahead of the
to detect the worksheet change.
Am using two methods which cause the cell formulas to update: manually editing a cell value or using the F9 key to force the entire worksheet to realculate.
So far I've tried at least a dozen VBA code formulas to trigger the macro shown above. Some only triggered (called PasteToNextEmptyRow) when I manually entered a new cell value, others went into endless loops. Still others did nothing, period. Using F9 to recalulate worksheet formulas probably produced the most instances of not calling the macro.
I am putting the code in the Sheet1 (Sheet1) code space. Is there someone in the Forum who could help with VBA could that would call the above macro whether cell values are manually edited or using the F9 key to force the entire worksheet to realculate? The range triggering the change is on Sheet1 over the range Q2:Q12.
Any suggestions or help on the VBA code would be greatly appreciated.
Thanks,
Art
I would appreciate some VBA help with code to copy a single cell (Q7) value to the first unused Row in column T when formulas on the worksheet recalculate.
The following code works fine for copying the cell value to the first unused Row in column T:
Code:
Sub PasteToNextEmptyRow()
Range("Q7").Copy
Sheets("Sheet1").Range("T" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
End Sub
However, there must be another macro ahead of the
Code:
PasteToNextEmptyRow
Am using two methods which cause the cell formulas to update: manually editing a cell value or using the F9 key to force the entire worksheet to realculate.
So far I've tried at least a dozen VBA code formulas to trigger the macro shown above. Some only triggered (called PasteToNextEmptyRow) when I manually entered a new cell value, others went into endless loops. Still others did nothing, period. Using F9 to recalulate worksheet formulas probably produced the most instances of not calling the macro.
I am putting the code in the Sheet1 (Sheet1) code space. Is there someone in the Forum who could help with VBA could that would call the above macro whether cell values are manually edited or using the F9 key to force the entire worksheet to realculate? The range triggering the change is on Sheet1 over the range Q2:Q12.
Any suggestions or help on the VBA code would be greatly appreciated.
Thanks,
Art