How can I enter the "Last saved by" field to my spreadsheet?

How can I enter a "Last Saved By" field to my spreadsheet? I have the date/time, but can't figure out how to add the name of the person who edited or saved it last.

thanks

[Moved Excel/Microsoft Office Programming/Unknown/other]

Hi Hilary, are you using VBA to add the Date and Time?

Excel has a function to get the name of the person who edited or saved the spreadsheet last

XXX = ThisWorkbook.BuiltinDocumentProperties("Last Author")
___________________________________________________________________

Power to the Developer!

MSI GV72 - 17.3", i7-8750H (Hex Core), 32GB DDR4, 4GB GeForce GTX 1050 Ti, 256GB NVMe M2, 2TB HDD

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

what is VBA?

i had to google how to add the date/time too because they changed so much in Excel - there's not "quick parts" anymore and i can't figure out how to add the fields I need.

last author is one of them.

So, do I just type in the cell: XXX = ThisWorkbook.BuiltinDocumentProperties("Last Author")

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Hilary, if you are not using VBA, please disregard the above

Please try this:

Select a Cell

On the Insert - Text - Quick Parts dialog, select Document Information - LastSavedBy

Does that get you the correct name into that cell?
___________________________________________________________________

Power to the Developer!

MSI GV72 - 17.3", i7-8750H (Hex Core), 32GB DDR4, 4GB GeForce GTX 1050 Ti, 256GB NVMe M2, 2TB HDD

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I don't have that - I don't have the "quick parts" or the "text" option. Only the text box. That's what I'm saying - what is supposed to be there is not there!

I don't get it!

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Hilary

Go to File - Account

What is the reported version of your Excel?
___________________________________________________________________

Power to the Developer!

MSI GV72 - 17.3", i7-8750H (Hex Core), 32GB DDR4, 4GB GeForce GTX 1050 Ti, 256GB NVMe M2, 2TB HDD

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hilary

You can use VBA to achieve your aims of having last saved by field.

If you want to try here's one way by installing this User Defined Function (UDF)

Function DocProps(prop As String)
    Application.Volatile
    On Error GoTo err_value
    DocProps = ActiveWorkbook.BuiltinDocumentProperties _
    (prop)
    Exit Function
err_value:
    DocProps = CVErr(xlErrValue)
End Function

With your workbook open hit Alt + F11 to go to Visual Basic Editor.

Or Developer>Visual Basic to go to the Editor.

CTRL + r to open Project Explorer if you don't see it.

Select your workbook/project and right-click>insert>module.

Paste the DocProps Function into that module.

Alt + q to return to the Excel window.

Save workbook

In a cell enter this formula

="Last saved by " & DOCPROPS("author")


Gord

Note: there are other properties you can pull if you wanted.  Examples are. . . .

'=DOCPROPS("last save time")
'or
'DOCPROPS("creation date")

4 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Dave AFAIK Quick Parts is available in Word and Outlook, not Excel

Gord

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Excel 2016

Version 1803

it's annoying, but fine if it can't be done. I really like having that as an option for when others get into the shared drive and mess with my stuff - I know who to go to -

I know I know, I can keep a local copy, but I'm not allowed. I have to keep it in the shared access folder. I don't want to do track changes - although I will check that out as an option! thanks.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated February 28, 2024 Views 3,125 Applies to: