variable stored in Excel - read only from VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I thought I read that there was a way to store data in an xls file - this data was only readable from within VBA. The data was stored and retrieved via key-value pair.

For example: "totalOpened", 356

I can't find the documentation on this now. Did I imagine this?

Bob Mooney
 
Sounds like you are talking about a collection or a dictionary object (from
the scripting runtime I believe).

However, neither are stored in a workbook as persistent data.

--
Regards,
Tom Ogilvy

Robert Mooney said:
I thought I read that there was a way to store data in an xls file - this
data was only readable from within VBA. The data was stored and retrieved
via key-value pair.
 
Sounds like you are talking about the hidden name space that Laurent Longre
explains on Chip Pearon's site.

http://www.cpearson.com/excel/hidden.htm

--
Regards,
Tom Ogilvy


Robert Mooney said:
Your post triggered a new thought. I can store persistent data through
CustomDocumentProperties. This will work for the time being. But this data
is accessible through the normal Excel macros. I still remember reading of
a way to store variables that could only be read from VBA.
 
Bob,

Maybe this is what you were thinking/confusing?

GetSetting
SaveSetting

These functions will get and save key-value pairs to a special VBA section
of the Registry. The information is not stored in an Excel file but can be
retrieved via VBA code.

Troy


Robert Mooney said:
I thought I read that there was a way to store data in an xls file - this
data was only readable from within VBA. The data was stored and retrieved
via key-value pair.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top