Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can do the same in Excel with CustomDOCUMENTProperties
ActiveWorkbook.CustomDocumentProperties.Add Name:="x", _ LinkToContent:=False, Type:=msoPropertyTypeNumber, Value:=1 MsgBox ActiveWorkbook.CustomDocumentProperties("x").Value ' Type mismatch MsgBox ActiveWorkbook.CustomDocumentProperties(1).Value ' ok -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Helmut Weber" wrote in message ... Hi everybody, is there something wrong with this code or is something wrong with Excel? 'ActiveSheet.CustomProperties.Add Name:="x", Value:=1 ' ok MsgBox ActiveSheet.CustomProperties("x").Value ' Type mismatch MsgBox ActiveSheet.CustomProperties(1).Value ' ok In Word I can refer to a customdocumentproperty by name. MsgBox ActiveDocument.CustomDocumentProperties("x").Value ' ok -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA "red.sys" & chr(64) & "t-online.de" Word 2002, Windows 2000 (german versions) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I refer to a row | New Users to Excel | |||
How to refer a name in VBA | Excel Discussion (Misc queries) | |||
Refer to value | Excel Discussion (Misc queries) | |||
refer indirectly to Name | Excel Worksheet Functions | |||
refer | Excel Discussion (Misc queries) |