ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   variable stored in Excel - read only from VBA (https://www.excelbanter.com/excel-programming/302030-variable-stored-excel-read-only-vba.html)

Robert Mooney

variable stored in Excel - read only from VBA
 
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

Tom Ogilvy

variable stored in Excel - read only from VBA
 
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" <Robert wrote in message
...
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




Tom Ogilvy

variable stored in Excel - read only from VBA
 
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" wrote in message
...
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 Mooney

"Tom Ogilvy" wrote:

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" <Robert wrote in

message
...
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







TroyW[_2_]

variable stored in Excel - read only 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" <Robert wrote in message
...
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





All times are GMT +1. The time now is 01:31 PM.

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