Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dev dev is offline
external usenet poster
 
Posts: 66
Default How to perisist object in Excel

How to persist the object between different sessions within Excel.

I am creating an application which is addin to Excel. When ever I close
Excel application, I want to store the object that I created so far - so
that, I can read it back when I reopen the same Excel file that I closed
earlier. Is it doable using Excel OM?

Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to perisist object in Excel

I think you would have to write it out where it would be stored as data, then
read in the data and reconstruct the "object".

In any event, I doubt there is any built in support for it - you would have
to do all the work.

--
Regards,
Tom Ogilvy



"Dev" wrote:

How to persist the object between different sessions within Excel.

I am creating an application which is addin to Excel. When ever I close
Excel application, I want to store the object that I created so far - so
that, I can read it back when I reopen the same Excel file that I closed
earlier. Is it doable using Excel OM?

Thanks!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default How to perisist object in Excel

Dev,

What objects are you creating? Can you supply a bit more information? Tom
is probably right, but some objects can be persisted easily - such as
commandbars.

Post back with an answer and we can go from there.


--
www.alignment-systems.com


"Dev" wrote:

How to persist the object between different sessions within Excel.

I am creating an application which is addin to Excel. When ever I close
Excel application, I want to store the object that I created so far - so
that, I can read it back when I reopen the same Excel file that I closed
earlier. Is it doable using Excel OM?

Thanks!!

  #4   Report Post  
Posted to microsoft.public.excel.programming
dev dev is offline
external usenet poster
 
Posts: 66
Default How to perisist object in Excel

No it's not commandbars.....

Thanks!!

"John.Greenan" wrote:

Dev,

What objects are you creating? Can you supply a bit more information? Tom
is probably right, but some objects can be persisted easily - such as
commandbars.

Post back with an answer and we can go from there.


--
www.alignment-systems.com


"Dev" wrote:

How to persist the object between different sessions within Excel.

I am creating an application which is addin to Excel. When ever I close
Excel application, I want to store the object that I created so far - so
that, I can read it back when I reopen the same Excel file that I closed
earlier. Is it doable using Excel OM?

Thanks!!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to perisist object in Excel

There several way you can store the properties of your object.
One would be to write the property values to worksheet cells,
perhaps on a hidden sheet. Another would be to store the
properties in defined names. Finally, you could store the
properties in custom document properties.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Dev" wrote in message
...
How to persist the object between different sessions within
Excel.

I am creating an application which is addin to Excel. When ever
I close
Excel application, I want to store the object that I created so
far - so
that, I can read it back when I reopen the same Excel file that
I closed
earlier. Is it doable using Excel OM?

Thanks!!





  #6   Report Post  
Posted to microsoft.public.excel.programming
dev dev is offline
external usenet poster
 
Posts: 66
Default How to perisist object in Excel

Yes, I am storing some of my hidden data in custom doc properties (each field
in custom doc properties can be of length 255 chars...) but I also want to
store an object....

"Chip Pearson" wrote:

There several way you can store the properties of your object.
One would be to write the property values to worksheet cells,
perhaps on a hidden sheet. Another would be to store the
properties in defined names. Finally, you could store the
properties in custom document properties.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Dev" wrote in message
...
How to persist the object between different sessions within
Excel.

I am creating an application which is addin to Excel. When ever
I close
Excel application, I want to store the object that I created so
far - so
that, I can read it back when I reopen the same Excel file that
I closed
earlier. Is it doable using Excel OM?

Thanks!!




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default How to perisist object in Excel

What is it about the object you wish to store that can't be handled by storing its properties?
When you create the object and modifiy it you're modifying its properties: as long as you can capture those somehow then you can
re-create the object...

Maybe consider adding serialize/deserialize methods to your object if you need this.

--
Tim Williams
Palo Alto, CA


"Dev" wrote in message ...
Yes, I am storing some of my hidden data in custom doc properties (each field
in custom doc properties can be of length 255 chars...) but I also want to
store an object....

"Chip Pearson" wrote:

There several way you can store the properties of your object.
One would be to write the property values to worksheet cells,
perhaps on a hidden sheet. Another would be to store the
properties in defined names. Finally, you could store the
properties in custom document properties.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Dev" wrote in message
...
How to persist the object between different sessions within
Excel.

I am creating an application which is addin to Excel. When ever
I close
Excel application, I want to store the object that I created so
far - so
that, I can read it back when I reopen the same Excel file that
I closed
earlier. Is it doable using Excel OM?

Thanks!!






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Label Options - Forms Object vs Control Box Object Awrex Excel Discussion (Misc queries) 3 July 17th 09 07:10 PM
Option button object proeprties or object not found in vba Pete Straman S via OfficeKB.com Excel Programming 0 August 31st 05 05:49 PM
Confusion about how the Window object fits into the Excel object model Josh Sale Excel Programming 11 April 15th 05 06:08 PM
returning pivottable object from a range object Grant Excel Programming 2 September 27th 04 02:22 AM
Range object to Array object conversion Alan Beban[_3_] Excel Programming 0 August 1st 03 01:24 AM


All times are GMT +1. The time now is 06:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"