How to save program state information in a saved excel file from an application-level add-in?
2 answers
I am using CustomDocumentProperties in the book itself (not the add-in)
http://www.dailydoseofexcel.com/archives/2004/07/16/custom-document-properties/
Then when I open the book, I check for CDP to determine if it belongs to my application, if it is the specific file type my application is using (for context sensitive menu items), and to read the state information for that book.
This link does not show a good example of CDP writing, but I think it looks like
ActiveWorkbook.CustomDocumentProperties.Add ...
+1
a source to share