Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Saving variables in XLA's


I have written code for a userform to be displayed and
give the user the ability to change values by having the
text boxes reference a cell in a work sheet.

The issue I have is that when I save file as an XLA it
modifies the variables while the XLA is running yet it
does not save the new variables if I close and reload the
XLA.

Can this be done without having to create an external
data variable file to be read by the XLA?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Saving variables in XLA's

there is no implicit ability to save variables. You would need to record
the values some place and make sure they were saved with the file, then
retrieve the saved values when appropriate.

--
Regards,
Tom Ogilvy

"Paul" wrote in message
...

I have written code for a userform to be displayed and
give the user the ability to change values by having the
text boxes reference a cell in a work sheet.

The issue I have is that when I save file as an XLA it
modifies the variables while the XLA is running yet it
does not save the new variables if I close and reload the
XLA.

Can this be done without having to create an external
data variable file to be read by the XLA?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Saving variables in XLA's

You have to store them somewhere.

You could use a worksheet in the addin and save the addin when that stuff
changes.

You could use that external file.

you could use the windows registry.

Paul wrote:

I have written code for a userform to be displayed and
give the user the ability to change values by having the
text boxes reference a cell in a work sheet.

The issue I have is that when I save file as an XLA it
modifies the variables while the XLA is running yet it
does not save the new variables if I close and reload the
XLA.

Can this be done without having to create an external
data variable file to be read by the XLA?


--

Dave Peterson

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
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 09:34 AM
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Too Many Variables Heliocracy Excel Worksheet Functions 6 April 6th 07 07:02 PM
Two variables Blackcat Excel Discussion (Misc queries) 7 January 7th 05 12:13 PM
Saving a Workbook: Forcing User to Rename before Saving Rollin_Again[_6_] Excel Programming 5 April 16th 04 02:54 PM


All times are GMT +1. The time now is 12:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"