+ Reply to Thread
Results 1 to 3 of 3

Record date last time button was clicked

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2010
    Posts
    68

    Record date last time button was clicked

    I have a button in "Sheet1", that performs an advanced filter on that sheet from data in another sheet..

    I'd like to have the cell next to that button, which is cell "C1" record the last time that button was pressed.
    There may be times the button is pressed where the data doesn't change, so I was thinking recording the last time the range or cell was modified, might not do the trick (which is all i found when doing my own searches - none of which i could get to work anyway).

    Seems like a simple problem, but having a ton of difficulties figuring out on my own.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Record date last time button was clicked

    Hi, MaddyG,

    what about adding this line of code:
    Please Login or Register  to view this content.
    If you only want the time use Time instead of Now. If the data is changed directly you could use the Worksheet_Change-Event on that sheet to monitor the time to the cell.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Record date last time button was clicked

    Added that to the end of the macro the button is assigned to and...

    Easy - simple - perfect.
    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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