VBA to track History changes from a worksheet to a new worksheet

dade652003

New Member
Joined
Apr 23, 2013
Messages
34
Hello

I need help and not able to find my solution.

I have in a sheet called TOC on cell J33, which updates every 2 minutes based on a = function to another sheet that uses a api query.

My goal is to track last value (history) before it updates, and have the data output on another sheet called Pro, going down the cell startign with cell A1.

Example:
Sheet: TOC
Cell: J33
Contains value $500, and updated to $1000, then updated $400...

Output:
Sheet: Pro
Cell A1 500
Cell A2 1000
Cell A4 400
....


Could this be done?

Amy information would be greatly be appreciated.

Thank you
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You can try this in the sheet TOC code module.
Code:
Private Sub Worksheet_Calculate()
Sheets("Pro").Cells(Rows.Count, 1).End(xlUp)(2) = Sheets("TOC").Range("J33").Value
End Sub
I don't think Worksheet_Change would work because it ignores values change by calculation, which I think the formula in J33 would be seen as by Excel. It won't hurt to try it. If it does not work, just delete it.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top