ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using VBA to find the author of a workbook (https://www.excelbanter.com/excel-programming/333532-using-vba-find-author-workbook.html)

[email protected][_2_]

Using VBA to find the author of a workbook
 
Does anyone know how to programatically (using VBA) find the author of a file
(File menu, Properties and Author) as I can't record it or find it in the
object browser

Bob Phillips[_7_]

Using VBA to find the author of a workbook
 

Activeworkbook.BuiltinDocumentProperties("author")

--
HTH

Bob Phillips

" m
wrote in message ...
Does anyone know how to programatically (using VBA) find the author of a

file
(File menu, Properties and Author) as I can't record it or find it in the
object browser




John.Greenan

Using VBA to find the author of a workbook
 
Hi James,

Try this....
sub test()
dim strNameOfAuthor as string
strNameOfAuthor = ThisWorkbook.BuiltinDocumentProperties("Author")

msgbox "The Author name is " & cstr(strNameOfAuthor)

end sub



--
www.alignment-systems.com


" wrote:

Does anyone know how to programatically (using VBA) find the author of a file
(File menu, Properties and Author) as I can't record it or find it in the
object browser


[email protected][_2_]

Using VBA to find the author of a workbook
 
Thanks Bob that was very helpful


"Bob Phillips" wrote:


Activeworkbook.BuiltinDocumentProperties("author")

--
HTH

Bob Phillips

" m
wrote in message ...
Does anyone know how to programatically (using VBA) find the author of a

file
(File menu, Properties and Author) as I can't record it or find it in the
object browser





[email protected][_2_]

Using VBA to find the author of a workbook
 
Thanks John - very useful

James

"John.Greenan" wrote:

Hi James,

Try this....
sub test()
dim strNameOfAuthor as string
strNameOfAuthor = ThisWorkbook.BuiltinDocumentProperties("Author")

msgbox "The Author name is " & cstr(strNameOfAuthor)

end sub



--
www.alignment-systems.com


" wrote:

Does anyone know how to programatically (using VBA) find the author of a file
(File menu, Properties and Author) as I can't record it or find it in the
object browser



All times are GMT +1. The time now is 12:14 AM.

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