Forum Discussion

Aless1275's avatar
Aless1275
Copper Contributor
Oct 06, 2021
Solved

Create a MACRO to save previous values of a changed Row in new ones (creating a database in Excel)

Hi, I'm here today to solve a problem that is really blocking me, and i would be super greatful if you could help me to solve it! As you can see in the attached file, i have the following purpose: ...
  • mtarler's avatar
    Oct 06, 2021

    Aless1275  OK, I'm not sure the bigger context of what you're doing and think other solutions may work for you.  Second, I ignored the code you sent as you said it doesn't do what you want.  So in the attached I added a very small macro that will copy the row from "Inputs" to "Database".  While I was at it, since it appears you want this as some sort of audit trail I also added timestamp and user to that record and also made it a table so you can easily sort or filter those records.  I hope this helps but if I knew more about the context I might suggest some other solution(s).  For example your insistence of the newest value on top is trivial to do but also easily performed using sorting of the table (at least now that I added the timestamp).  Well, best of luck.

Resources