Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to create a new property variable for a workbook while
running a macro in it? I want something like "ThisWorkbook.MyCustomProperty = "Julian" -- Julian Milano |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Julian,
Try something like the following: Dim DocProps As DocumentProperties Set DocProps = ThisWorkbook.CustomDocumentProperties DocProps.Add Name:="NewProp", LinkToContent:=False, _ Type:=msoPropertyTypeString, Value:="New Value" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Julian Milano" wrote in message ... Is it possible to create a new property variable for a workbook while running a macro in it? I want something like "ThisWorkbook.MyCustomProperty = "Julian" -- Julian Milano |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Chip.
-- Julian Milano "Chip Pearson" wrote in message ... Julian, Try something like the following: Dim DocProps As DocumentProperties Set DocProps = ThisWorkbook.CustomDocumentProperties DocProps.Add Name:="NewProp", LinkToContent:=False, _ Type:=msoPropertyTypeString, Value:="New Value" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Julian Milano" wrote in message ... Is it possible to create a new property variable for a workbook while running a macro in it? I want something like "ThisWorkbook.MyCustomProperty = "Julian" -- Julian Milano |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create a macro to duplicate the current row? | Excel Discussion (Misc queries) | |||
Button/Script to create a new workbook from a current one. | Excel Worksheet Functions | |||
Create Copy of Current Worksheet | Excel Programming | |||
Transparently updating another workbook from the current workbook | Excel Programming | |||
Worksheet/workbook protection property? | Excel Programming |