Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9019521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:47:53+00:00 2026-06-16T04:47:53+00:00

In Excel 2010, I have a date 01-01-2012 and a left and right arrow.

  • 0

In Excel 2010, I have a date “01-01-2012” and a left and right arrow.

I need to apply a macro or something else so the days in the date will decrease/increase accordingly. How can this be done?

Example:
“01-03-2012”, when right-arrow is pressed, the date should change to “02-03-2012”, and next time “03-03-2012” and so on.. from [01-31]
Note, the months and years shall never change.

I have made a macro, that can change the date the fixed date I typed in when recording the macro, but it’s not good enough. I need it to add/substract instead.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:47:55+00:00Added an answer on June 16, 2026 at 4:47 am

    I named the cell where the date is “theDate”. The Sub for SubtractDay is pretty much the same, the second argument for the DateAdd function would be -1.

    Sub AddDay()
    
    Dim theDate As Date
    Dim newDate As Date
    
    theDate = Sheet1.Range("theDate")
    
    newDate = DateAdd("d", 1, theDate))
    
    Sheet1.Range("theDate") = newDate
    
    End Sub
    

    Please note that is a quick’n’dirty VBA Sub, since this is not my “forte”, but it will work…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a cell in Excel sheet I have a Date value like: 01/01/2010 14:30:00
I'm using Excel 2010 and I have a macro that needs to load OData
I have an Excel 2010 macro application that is made up of several workbook
I have an Excel 2010 workbook for financial records. On one worksheet, I have
I have the following function using Excel 2010: Private Function MakeAllSheetsValuesOnly(targetBookName As String) If
I have made a new Excel 2010 Add-in project, with VS10. When I run
I am working on a VSTO Excel 2010 Macro Enabled Template Project, that I
I have Excel 2010 and found confused instructions to get popUp calendar in a
I have an old macro that was working fine on Excel 2003 but creates
I'm using xmlhttp via vba in excel 2010. I need to programmatically add an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.