+ Reply to Thread
Results 1 to 5 of 5

VBA - Last Saved By

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Elizabethtown, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    VBA - Last Saved By

    I have a workbook that will be shared by several users. I would like to stamp "Last Saved By" every time someone makes a change. I have tried to use:
    Function LstSvBy() As Variant
    Appliation.Volatile
    LstSvBy = ActiveWorkbook.BuiltinDocumentProperties(7)
    End Function

    Cell: =LstSvBy

    It works on 2003 workbooks but not 2010. I get the following error: "Number?

    I have a separate VBA set up for Time/Date Stamp and that works fine.
    Can't seem to figure this one out. Thanks for your help.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA - Last Saved By

    Public Function LstSvBy() As String
    Application.Volatile
    LstSvBy = CStr(ActiveWorkbook.BuiltinDocumentProperties(7))
    End Function

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    Elizabethtown, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: VBA - Last Saved By

    Same error #NAME?

    There must be something with 2010 that does not let this work. I have tried for 2 days and can't get around this. Do you know of any other way around this?
    Thanks again.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA - Last Saved By

    It works fine on mine.

    I think the name error is coming from the fact its not publicly declared, also have you got your macros enabled?

    I have attached mine for you to try
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-21-2013
    Location
    Elizabethtown, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: VBA - Last Saved By

    Thank you. This worked when I used your.

    I appreciate your help.

+ 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