Shortcut to increase date in a cell by one day (not cells underneath)

michael7000

New Member
Joined
Sep 1, 2017
Messages
1
Hi,


I'm looking for a shortcut to change a date in a cell to the next day.
So for instance; i have a cell with 01/Jan/2017 and I want to change the date in that cell to 02/Jan/2017 (not the cell underneath - I know about the drag function which will copy or increase the date in cells underneath).


Any ideas?


Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Basically invoke with a QAT or other button
You may want a Subtract_One variant to.

Code:
Sub Add_One()
Range("A1").Value = Range("A1").value+1
End Sub
 
Upvote 0
It's not too clear how the date in the cell is set at the moment, a formula.vba etc, and why you don't just change it manually. When and why are you changing the cell? Are you looking to have it update daily? If so just use the =Today() function which will enter today's date, if you wanted it to be a date in the past , say a week ago you just take away 7 days =TODAY()-7 and it'll always display a date a week from today's whenever you view it.
 
Last edited:
Upvote 0
You can try with a worksheet event with double click on any cell:
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Target.Value = Target.Value + 1
    Cancel = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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