ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   embedding / structured storage? (https://www.excelbanter.com/excel-programming/301484-embedding-structured-storage.html)

Richard Bond

embedding / structured storage?
 
I have a report definition (list of parameters - could be
"xmlified"/serialised) that I would like to store within an excel file. Can
someone point me in the direction of some documentation on how to do this /
pros and cons.

thanks,

Rich



Dana DeLouis[_3_]

embedding / structured storage?
 
You could store it in a cell. Other options would be to store it as a
defined name.

Sub Demo1()
ActiveWorkbook.Names.Add Name:="ReportDef",
RefersTo:="=""xmlified/serialised"""
End Sub


Another option would be to store it as a Custom Document Property. You can
view it under <File <Properties and then the Custom tab.

Sub Demo2()
ThisWorkbook.CustomDocumentProperties.Add _
Name:="ReportDef", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="xmlified/serialised"
End Sub


HTH
Dana DeLouis


"Richard Bond" wrote in message
...
I have a report definition (list of parameters - could be
"xmlified"/serialised) that I would like to store within an excel file.

Can
someone point me in the direction of some documentation on how to do this

/
pros and cons.

thanks,

Rich





Richard Bond

embedding / structured storage?
 
Thanks,

I like the idea of CustomDocumentProperties, however I think I need more
than 255 characters. Is there another way?

regards,

Richard


"Dana DeLouis" wrote in message
...
You could store it in a cell. Other options would be to store it as a
defined name.

Sub Demo1()
ActiveWorkbook.Names.Add Name:="ReportDef",
RefersTo:="=""xmlified/serialised"""
End Sub


Another option would be to store it as a Custom Document Property. You

can
view it under <File <Properties and then the Custom tab.

Sub Demo2()
ThisWorkbook.CustomDocumentProperties.Add _
Name:="ReportDef", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="xmlified/serialised"
End Sub


HTH
Dana DeLouis


"Richard Bond" wrote in message
...
I have a report definition (list of parameters - could be
"xmlified"/serialised) that I would like to store within an excel file.

Can
someone point me in the direction of some documentation on how to do

this
/
pros and cons.

thanks,

Rich







Dana DeLouis[_3_]

embedding / structured storage?
 
Could you break the string into smaller units and store the names like
"Report1", "Report2", etc? When you retrieve the strings, you could than
join them together. Or perhaps just a dedicated Cell.

Dana DeLouis

"Richard Bond" wrote in message
...
Thanks,

I like the idea of CustomDocumentProperties, however I think I need more
than 255 characters. Is there another way?

regards,

Richard


"Dana DeLouis" wrote in message
...
You could store it in a cell. Other options would be to store it as a
defined name.

Sub Demo1()
ActiveWorkbook.Names.Add Name:="ReportDef",
RefersTo:="=""xmlified/serialised"""
End Sub


Another option would be to store it as a Custom Document Property. You

can
view it under <File <Properties and then the Custom tab.

Sub Demo2()
ThisWorkbook.CustomDocumentProperties.Add _
Name:="ReportDef", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="xmlified/serialised"
End Sub


HTH
Dana DeLouis


"Richard Bond" wrote in message
...
I have a report definition (list of parameters - could be
"xmlified"/serialised) that I would like to store within an excel

file.
Can
someone point me in the direction of some documentation on how to do

this
/
pros and cons.

thanks,

Rich










All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com