+ Reply to Thread
Results 1 to 8 of 8

Button to bring me to today's date

  1. #1
    Registered User
    Join Date
    10-30-2020
    Location
    Den Bosch, Netherlands
    MS-Off Ver
    365
    Posts
    15

    Button to bring me to today's date

    I have a File that has several rows of costs and incomes. Each row has its own datestamp going day by day.
    A testfile is attached.

    I want to have a button, that brings me to today's date.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by larsvane; 06-10-2024 at 05:23 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,003

    Re: Button to bring me to today's date

    Here, try this:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: Button to bring me to today's date

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-30-2020
    Location
    Den Bosch, Netherlands
    MS-Off Ver
    365
    Posts
    15

    Re: Button to bring me to today's date

    Thanks for your responses. At first I thought both did not work, however that was my own flaw of not incoperating todays date in the list. My apologies.

    Both work perfectly. So thank you all!

    I will now close the sub.
    Last edited by larsvane; 06-10-2024 at 05:22 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,182

    Re: Button to bring me to today's date

    Whom are you addressing? Please make this clear. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Re: Button to bring me to today's date

    Both of these worked for me. I'm assuming you erroneously right clicked the button, clicked "Assign Macro" and pasted it. The button itself would still be assigned to the default "Button_Click" macro.

    You need to right click the macro button again and "Assign Macro", but this time, choose the macro from the list.

  7. #7
    Registered User
    Join Date
    11-04-2012
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Button to bring me to today's date

    Rather than click a button to add a function, I just want to be able to click into A2 and to run the Macro.
    The Macro adds a new line for new data and gives me today's day and date.
    This all works, but I need it to go get me the current Day and short form Date (2 separate columns). It just gives me today's day and time. When I use the file tomorrow I need it to give me tomorrow's day and date.

    I can send the Macro code if you want?

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,003

    Re: Button to bring me to today's date

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Never use Merged Cells in Excel

+ 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. Today's date with a button
    By manos77 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-25-2017, 01:55 AM
  2. Replies: 1
    Last Post: 06-09-2016, 03:46 PM
  3. Create a button that will find today's date in a spreadsheet.
    By slindfors in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2015, 03:19 PM
  4. [SOLVED] Button to scroll to today's date
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-25-2013, 01:35 PM
  5. commandbutton to bring up row having today's date and highlight it
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-09-2013, 07:02 AM
  6. Macro button to find today's date
    By razor_raef in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-08-2013, 11:23 PM
  7. VBA | Find Today's Date by Command Button
    By maintguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 01:04 PM

Tags for this Thread

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