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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,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