+ Reply to Thread
Results 1 to 2 of 2

"LASTSAVED()" does not work for only worksheet.

  1. #1
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    "LASTSAVED()" does not work for only worksheet.

    I am using "=LastSaved()" that tells me when any change in the workbook.

    I like to only record change on a specific sheet. Instead its giveing me changes made when data is enter in any other sheets on the workbook.

    Function LastSaved()
    Application.Volatile
    LastSaved = FileDateTime(ActiveWorkbook.FullName)
    End Function
    Last edited by rogrand; 10-06-2021 at 03:57 PM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: "LASTSAVED()" does not work for only worksheet.

    Well, the function LastSaved refers to a workbook not a worksheet

    The only way to achieve this is to use a worksheet change event that when a value is changed it records it in worksheet that you have explicitly added to track the changes

    If you Google this you'll find many ideas, one link that might point you in the right direction https://www.ozgrid.com/VBA/track-changes.htm

    Happy coding
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ 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. [SOLVED] Unable to Make FIFO Code work If I change text From "Bought" to "Buy"
    By onp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2021, 11:00 AM
  2. Copying 4 columns from a work called "Final Work" into a work called "Student Fees"
    By walid ali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2020, 03:06 PM
  3. Replies: 3
    Last Post: 11-19-2020, 08:30 PM
  4. Replies: 3
    Last Post: 01-02-2014, 02:15 PM
  5. [SOLVED] Range("A1") = Sheets("Sheet2").CenterHeader.Text doesnt work.
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 07:06 AM
  6. Open files from FTP server (works with "servername" but doesn't work with "ip address")
    By adammsu1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 04:30 PM
  7. How do I work with the "dialogs" I can insert as worksheet tabs?
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM

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