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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 'Company' Property for Office Document 1

Status
Not open for further replies.

idbr

MIS
May 1, 2003
247
GB
Hi,

I'm trying to Access the 'Company' property for a list of Office documents, the one that comes up when you open the properties dialog for the file.

I'm doing this in a VBA procedure, does anyone know how to get it?

Thanks, Iain
 
Apologies, forgot to mention that the list is a mixture of .xls & .doc
 
Hi Iain,

This should get it for you:
Code:
[i]Document_or_Workbook_Ref[/i].BuiltinDocumentProperties("Company")

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Thanks Tony, just the job.

Thanks, Iain
 
One other thing - I can't make this work for an Access db (apologies, not in my original scope) - any advice?

Thanks again, Iain
 
Hi Iain,

This isn't one you stumble across by accident!
Code:
CurrentDb.Containers!Databases.Documents!SummaryInfo.Properties("Company")

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Wow, you're not kidding!

Thanks again, Iain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top