ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   =INFO("Type_text") (https://www.excelbanter.com/excel-worksheet-functions/101873-%3Dinfo-type_text.html)

bed_mail

=INFO("Type_text")
 
I appreciate that =INFO("directory") displays the Path of the current
directory or folder.

Is there a similar function to display the user/author or last saved by
information. I cannot find the required - Type_text

The reason being

I have set up a simple spreadsheet to log user changes to a particular
process over time. I.e. Everytime changes are made to the remote process they
are expected to log them in the spreadsheet.

I have a series of Command Buttons with macros assigned to help me search
through the document, time stamp it to log date of changes but was hoping to
add a button that would stamp the name of the user (i.e the person making the
changes). I thought this would be easy but struggling to find the required
terminology for user, author or even last saved by.

Can anyone help. I appreciate that this is sort of twop questions in one but
would be greatful of any help.

Thanks in advance

FunkySquid

=INFO("Type_text")
 
I don't think that there's an inbuilt function that will do this but if
you paste this code in, you'll be able to reference it in your
workbook:

Function GetWorkbookSavedInfo()
Dim LastSavedTime, LastSavedBy
LastSavedBy = ActiveWorkbook.BuiltinDocumentProperties.Item(7).V alue
LastSavedTime = ActiveWorkbook.BuiltinDocumentProperties.Item(12). Name
& " " & ActiveWorkbook.BuiltinDocumentProperties.Item(12). Value

GetWorkbookSavedInfo = LastSavedTime & " by " & LastSavedBy
End Function

now in your workbook, type:
=GetWorkbookSavedInfo()

FunkySquid

bed_mail wrote:
I appreciate that =INFO("directory") displays the Path of the current
directory or folder.

Is there a similar function to display the user/author or last saved by
information. I cannot find the required - Type_text

The reason being

I have set up a simple spreadsheet to log user changes to a particular
process over time. I.e. Everytime changes are made to the remote process they
are expected to log them in the spreadsheet.

I have a series of Command Buttons with macros assigned to help me search
through the document, time stamp it to log date of changes but was hoping to
add a button that would stamp the name of the user (i.e the person making the
changes). I thought this would be easy but struggling to find the required
terminology for user, author or even last saved by.

Can anyone help. I appreciate that this is sort of twop questions in one but
would be greatful of any help.

Thanks in advance




All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com