+ Reply to Thread
Results 1 to 4 of 4

I need a Macro to go to a cell with closet date to Today

  1. #1
    Registered User
    Join Date
    05-10-2015
    Location
    P,Or
    MS-Off Ver
    2007
    Posts
    2

    I need a Macro to go to a cell with closet date to Today

    I have an excel spreadsheet with past and future dates(mm/dd/yyyy) in cells A9:A200. I want to have a macro to go to the cell closest to Todays date. All dates are in ascending order. Today() is in cell A2. I already know how to assign a macro to a button on my speadsheet, I just need the macro code.
    Any help will be appreciated.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: I need a Macro to go to a cell with closet date to Today

    Maybe this?...
    Please Login or Register  to view this content.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I need a Macro to go to a cell with closet date to Today

    Hi,

    By 'goto' do you mean you want the active cell to end up being the date cell closes to today? Suppose there are two dates both equidistant from today, which one would you want?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    05-10-2015
    Location
    P,Or
    MS-Off Ver
    2007
    Posts
    2

    Re: I need a Macro to go to a cell with closet date to Today

    Thank you for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro code for today's date + text copied to specific cell
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2015, 09:35 AM
  2. Excel Macro that jumps to cell that has nearest to today's date
    By newman1234 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-07-2014, 06:02 AM
  3. [SOLVED] Simple macro to enter Today's date into specific cell
    By aaron.irvine in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-23-2013, 10:46 PM
  4. Macro to input today's date into a cell?
    By Hambone70 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2013, 11:36 AM
  5. loading today's date into a cell from a macro
    By jartzh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2008, 07:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1