VBA code to Reset counter in a cell to 1, everyday (newbie here)

radian89

Board Regular
Joined
Nov 12, 2015
Messages
113
Hi all,

I have little experiments here, I want to know the code to reset the counter based on changes of day. so when ever i click Add number button, will add the counter +1, become 1,2,3 and so on, but it will reset to 1 again after the next day.

how to do it?

20pezw4.jpg
[/IMG]

thanks a lot for the help
 
.. C3, need not contain formula, and user define it manually, noted
C3 should not be touched at all by the user if you use the code I suggested. C3 should only ever be changed by the code itself. I suggest that you just try what I posted for a couple of days, opening the sheet a few times per day and altering C5, not C3. When you first open the workbook each day, you should see C5 reset to 1.
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
C3 should not be touched at all by the user if you use the code I suggested. C3 should only ever be changed by the code itself. I suggest that you just try what I posted for a couple of days, opening the sheet a few times per day and altering C5, not C3. When you first open the workbook each day, you should see C5 reset to 1.

okay, I'll try it for couple days... can't wait to see the result :pray:
 
Upvote 0

Forum statistics

Threads
1,222,644
Messages
6,167,278
Members
452,108
Latest member
Sabat01

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