logo

How do I embed SharePoint document properties in Excel 2007?

Phil N posted on Monday, June 30, 2008 5:36 PM

I am able to embed document properties into a Word 2007 file but don't see
the equivalent for Excel. Surely it must be possible to embed SharePoint
metadata into a cell so that user of a spreadsheet don't have to cut & paste?
Thanks.
reply


Solution

TESBC posted on Thursday, November 05, 2009 4:12 AM

Okay this post is a old but for those that haven't worked it out and want to do it here are solutions as I was searching for sometime and finally worked this out.



All of these require you to create a visual basic module and work with Excel 2007. I haven't tested this with any other version so don't know if it will work or not.



Document Properties:



Function DocumentProperty(Property As String)

Application.Volatile

On Error GoTo NoDocumentPropertyDefined

DocumentProperty = ActiveWorkbook.BuiltinDocumentProperties(Property)

Exit Function



NoDocumentPropertyDefined:

DocumentProperty = CVErr(xlErrValue)

End Function



Custom Properties:



Function DocumentPropertyCustom(Property As String)

Application.Volatile

On Error GoTo NoDocumentPropertyDefined

DocumentPropertyCustom = ActiveWorkbook.CustomDocumentProperties(Property)

Exit Function



NoDocumentPropertyDefined:

DocumentPropertyCustom = CVErr(xlErrValue)

End Function



Sharepoint Properties:



Function DocumentServerProperty(Property As String)

Application.Volatile

On Error GoTo NoDocumentPropertyDefined

DocumentServerProperty = ActiveWorkbook.ContentTypeProperties(Property)

Exit Function



NoDocumentPropertyDefined:

DocumentServerProperty = CVErr(xlErrValue)

End Function
reply


Didn't Find The Answer You Were Looking For?

View Excel Miscellaneous Posts   Ask A New Question

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos

Previous Excel Miscellaneous conversation.

Developer Outlook AddIns    Excel    Excel Charting    Excel Crashes GPFs    Excel Miscellaneous    Excel New Users    Excel Programming    Excel Setup    Excel Worksheet    Groove    MAC Office    MAC Office Entourage    MAC Office Word    Office Communicator    Office Developer Automation    Office COM Add-Ins    Office Developer Other    Office Outlook Forms    Office Outlook VBA    Office Developer VBA    Office Miscellaneous    Office Setup    Office Templates Misc    Office Update    One Note    Outlook    Outlook BCM    Outlook Calendaring    Outlook Contacts    Outlook Fax    Outlook General    Outlook Installation    Outlook Interop    Outlook MAC    Outlook Printing    Outlook Program Add-Ins    Outlook Program Forms    Outlook Program VBA    Outlook 3rd Party Utility    Outlook Express    PowerPoint    Project    Project Developer    Project Server    Visio    Visio Developer    Visio General    Word Application Errors    Word Conversions    Word Menus Toolbars    Word Document Management    Word Drawing Graphics    Word International Features    Word mail    Word Mail Merge Fields    Word New Users    Word Numbering    Word OLE Interop    Word Page Layout    Word Printing Fonts    Word Programming    Word Setup Networking    Word Spelling Grammar    Word Tables    Word VBA Add-Ins    Word VBA Beginners    Word VBA Customization    Word VBA    Word VBA User Forms    Works Windows   






  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010