Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
When I create a CustomDocumentProperty programmatically and set the LinkToContent value to True, the value is not available to use programmatically before I have accessed the menu File-Properties. To illustrate it I have included some sample code, just create a new workbook and add a button to it. Paste the following code into the "ThisWorkbook" Private Sub Workbook_Open() ActiveSheet.Range("A1").Value = "Test" ActiveSheet.Names.Add Name:="TestName", RefersTo:="=Sheet1!$A$1" ActiveWorkbook.CustomDocumentProperties.Add Name:="CustomProp", LinkToContent:=True, Type:=msoPropertyTypeString, LinkSource:="TestName" End Sub Add the following code into the button event handler MsgBox ActiveWorkbook.CustomDocumentProperties("CustomPro p").Value Is there a way to get Excel to populate the CustomDocumentProperties programmatically, We are integrating all our documents with Meridio which is a EDRM solution and this program use the DocumentProperties when storing the documents Regards Jan Petter |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Showing Custom file properties in Header | Excel Discussion (Misc queries) | |||
Querying Properties programmatically | Excel Discussion (Misc queries) | |||
remove read only - not showing up in properties | Excel Worksheet Functions | |||
VBA Editor not showing list of properties & methods | Excel Programming | |||
Objects not showing up in VBA properties | Excel Programming |