VBA to create time entry into Worksheet

franswa3434

Board Regular
Joined
Sep 16, 2014
Messages
70
Hey all,

Ive created a button that will do a web scrape to gather estimated values of various video games that I have, and then adds together their estimated values (simple SUM formula)a to give me the total value of my collection. Every time I press the button, it does the necessary web scrapes and the values update accordingly.

What I would like to add as a function of this, is each time the button is pressed, it will create a time stamp in a cell on a separate worksheet (we'll call this worksheet "Value Graph"), along with the value at that time in the cell next to it.

So the idea would be press the button, then in WS "Value Graph", A2 it populates the day/time, and in B2 it populates the summed value. Press it again, A3 populates with the next day/time, and B3 populates with the new value. Then A4/B4, A5/B5, etc.

The desire is to graph the overall changes in value over time.

Is this something I can do?

Thank you all for your help!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try something like this:
Code:
Sheets("Value Graph").Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(, 2) = Array(Now, [COLOR=#ff0000][I]YourSumValue[/I][/COLOR])
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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