How to show Author name in a cell

suet

Board Regular
Joined
Oct 19, 2005
Messages
56
Hi

I hope everyone is well. I have a question which I hope is straight forward.

I want to show the Author of the workbook in cell A1 on Sheet1 but I am unable to find an field codes that will show you this.

For example, if someone called John Doe opens and saves the workbook I want his name to appear in A1.

If someone called Janet Smith opens the same works and saves it with a new name I want her name to appear. Is there an option to do this like you have in Word?

Thanking you in advance.

Regards
Sue
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Maybe with a small function:
VBA Code:
Function getLastSavedBy()
    Dim lastSavedBy As String
    lastSavedBy = ThisWorkbook.BuiltinDocumentProperties("Last Author")
    getLastSavedBy = lastSavedBy
End Function

Used in the workbook like:
Excel Formula:
=getLastSavedBy()
 
Upvote 0
Solution
Maybe with a small function:
VBA Code:
Function getLastSavedBy()
    Dim lastSavedBy As String
    lastSavedBy = ThisWorkbook.BuiltinDocumentProperties("Last Author")
    getLastSavedBy = lastSavedBy
End Function

Used in the workbook like:
Excel Formula:
=getLastSavedBy()
Hi Georgiboy

Thank you very much for your prompt reply.

That worked a treat.

Many many thanks.

Have a great day.
Sue
 
Upvote 0
Hiya

Sorry to bother you but could you advise how to add the Current Month and Year into cell A2 so that when the month and year change, the data in cell A2 auto updates - eg: April 2023, May 2023, June 2023.

Thanks in advance.

Regards
Sue
 
Upvote 0
Maybe:
Excel Formula:
=TEXT(NOW(),"mmmm yyyy")
 
Upvote 0
I changed the "Solution" on this thread.
It is best to mark the solution to the original question, not the secondary follow up question.
That way, when searching the threads, people can see the original question and solution at the top.
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,255
Members
448,879
Latest member
oksanana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top