Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Variable that retains value after closing excel

Is it possible to force a variable to retain its value after closing excel.
In other words when excel is opened next time the value of the variable at
close is retained?
Sandy


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Variable that retains value after closing excel

One way is to store in a cell somewhere

--
Don Guillett
SalesAid Software

"Sandy" wrote in message
...
Is it possible to force a variable to retain its value after closing
excel. In other words when excel is opened next time the value of the
variable at close is retained?
Sandy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Variable that retains value after closing excel

Hi Sandy,

Amongst a number of possibilities, you could write the variable's value to a
defined name in the Workbook_BeforeClose procedure and read it in the
Workbook_Open event; alternatively, you could write the value to a (hidden?)
sheet. Other possibilites would include wtiting the value to the registry or
a Workbook property.


---
Regards,
Norman



"Sandy" wrote in message
...
Is it possible to force a variable to retain its value after closing
excel. In other words when excel is opened next time the value of the
variable at close is retained?
Sandy



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
Closing workbooks w/o closing Excel Barb in MD Excel Discussion (Misc queries) 3 February 15th 10 06:42 PM
Saveas on Template retains existing name! Brent Fidler Excel Programming 0 May 21st 04 10:00 PM
Templaste SaveAs retains existing name Brent Fidler Excel Programming 0 May 18th 04 05:58 PM
Template Save As retains existing name!! Brent Fidler Excel Programming 2 April 17th 04 02:42 AM
Macro that retains password. SpeeD72 Excel Programming 1 August 11th 03 01:34 AM


All times are GMT +1. The time now is 02:10 PM.

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"