ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Suvive value of Public variable (https://www.excelbanter.com/excel-programming/432393-suvive-value-public-variable.html)

Kentae

Suvive value of Public variable
 
Hi
I want my value in a Public variable (string) will suvive after save and
close dokument until I open it next time.
Thanks in advance
Kentea

ker_01

Suvive value of Public variable
 
The only way to do this is to save that value before closing the file, and
load it when the file is loaded (using the workbook open event, for example).

Places people might store their variable values:
* hidden worksheets
* separate files (like a txt or xml file)
* as custom document properties

HTH,
Keith

"Kentae" wrote:

Hi
I want my value in a Public variable (string) will suvive after save and
close dokument until I open it next time.
Thanks in advance
Kentea


Jacob Skaria

Suvive value of Public variable
 
You cannot. instead you can save the variable to a unused cell or a named
range duing workbook close event and get that during Workbook open event.

If this post helps click Yes
---------------
Jacob Skaria


"Kentae" wrote:

Hi
I want my value in a Public variable (string) will suvive after save and
close dokument until I open it next time.
Thanks in advance
Kentea



All times are GMT +1. The time now is 08:52 PM.

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