Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change in Excel the Author (Properties) with VBA ? 1

Status
Not open for further replies.

gtaborda

Programmer
May 13, 2007
75
0
0
GB
Hi there

I have a VBA macro which creates a new excel document (from a "Master Excel doc) and saves it to a set directory.

Several people can do this process and I would like to change the "Author" on the properties of the newly created document, just before it is saved, in order to keep a control of who did it.

Could anyone advise how this could be done ?

Your help is appreciated

thanks


 
Having reference to the workbook:
WorkbookRef.BuiltinDocumentProperties("Author") = Environ("USERNAME")

combo
 
Hi, thanks for answering

Yes !!!!! using

WorkbookRef.BuiltinDocumentProperties("Author") = Environ("USERNAME")

works !!!!!

I had to do a small change, usng Activeworkbook. instead of workbookref. and it works perfectly

ActiveWorkbook.BuiltinDocumentProperties("Author") = Environ("USERNAME")

Thanks Combo !

thank you both for your suggestions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top