Hello,
I am just started learning VBA and needed some help on the creation of a macro to record a set of values and put in a time stamp as well.
The spreadsheet is set up with the second row (row 2) with a value in each cell going horizontally, from column to column. These cells are continuously updated with a link to provide a live number of a specific products, who's names are in row 1.
I would like to record each of these values at a specific time interval below the updating values to keep a log of them to run some statistical analysis on them. Specifically, for each 1 minute time interval, I'd like all the values in the 2nd row (the ones that are continuously updating) to be copied and pasted to the row below, and in the first column ( column A) have a time stamp of the exact time that this value was recorded. At the next minute, I want this to happen again, but this time the value pasted below the prevously recorded/pasted row, so that as time passes. a new row is formed with new snapshot values of the live cells in row 2. I want it to be able to run continuously (infinetely recording values downaward) until I manually break the macro myself ( I know this will be a huge amount of data, but I can manage that).
I know how to make a button of this, so that wont be a problem, but how would I be able to adjust the spreadsheet macro in case I decide to add even more updating cells in row 2, thereby using more columns to record data. Is there a specific way I can update the macro in order to run it the same, but now also incorporate the new value recorded and time stamped, just like the others. ( I realize that the time stamps for these "extra" products added in will not have the previously recorded data as the others would, and therefore would start way down the rows in sync with the others).
I'm at a loss on how to do something this complex, and help or guidance would be appreciated. I hope I've been descriptive enough. Thanks!