how to date stamp with form function macro?

PlumGr8

Board Regular
Joined
Nov 23, 2017
Messages
145
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hey guys, been a long time lurker finding my answers, but can't find one for this one, so here goes.

Creating a tracker tab using the spin function, where i click up or down to increase or decrease a value. I am looking for a way that everytime i click the spin function that it will auto date stamp a selected cell. I tried a couple formulas that i found on auto stamping a date when a cell value changes, but it won't work when linked to the spin function it seems. So i see i can add a macro into the spin function, so not sure if i can do it that way?

So basically, i would hit the top button on the spin function to increase the value in say D6 from 10 to 11. I would like it if i could then make cell D7 show the date stamp for when it was changed. Is there an easy way to do that?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
hi PlumGr8,



Think you need a code like this (obviously replacing "Tracker" and "A1" with the sheet and range you want):

Code:
Sub TrackChange()

ActiveWorkbook.Sheets("Tracker").Range("A1").Value = Now

End Sub

And then assign your spinbutton (right-click menu) your new macro 'TrackChange'

I hope this helps you achieve what you expected.
 
Upvote 0
Thanks, i had to modify it a little bit, i actually had 9 spin functions to assign, but we used that as the basis and we got it. Thanks for the help
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
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