Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making UserForm Values "Permanent"

This seems like a simple question. I thought I asked it a while ago
(perhaps as part of another question), but I did a few searches and did
not turn anything up ...

How do I make userform variables that have been changed during the
execution of the application retain those new values and have the
application use them the next time the application is opened?

Thanks


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making UserForm Values "Permanent"

Store those values in a hidden sheet whenever they change.... Write
them to a registry entry, write them to a .ini file.

Keith
www.kjtfs.com


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Making UserForm Values "Permanent"

Hi

You could also store them as a defined name in the workbook or in hidden
labels on the userform.

KenM


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making UserForm Values "Permanent"

Keith: thank you for your reply. I have used hidden sheets in the
past. That works but it does seem like brute force. Wirting to the
Registry or a separate file has the disadvantage of not being
"portable".

Thanks again


---
Message posted from http://www.ExcelForum.com/

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making UserForm Values "Permanent"

MWE wrote:
*Keith: thank you for your reply. I have used hidden sheets in the
past. That works but it does seem like brute force. Wirting to the
Registry or a separate file has the disadvantage of not being
"portable".

Thanks again *


Agree, it is best to keep the data with you. The regestry can be nice
since no matter where you move the excel sheet it will still look
there, but if you move it on another machine then you have to start
over. My perfered way is hidden sheets, as long as you are using semi
fast machines and have good memory brute force is sometimes the best
way. If you wanted to be sexy about it you could create a web service
that will send or recieve values from your app that are stored/written
to a database on a web server, if you are using this in a corporate
environment you dont have to worry about internet connection. But
would I do this over a hidden sheet, only if I was getting paid extra
for overtime.

Keith
www.kjtfs.com


---
Message posted from http://www.ExcelForum.com/



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Making UserForm Values "Permanent"

Keith: thanks for the followup. After thinking a bit more about this
I have decided to use hidden sheets and have generalized the way
handle this particular need as well as a half dozen other housekeepin
chores. This will turn out to be very efficient and useful. Thank
for the prod

--
Message posted from http://www.ExcelForum.com

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
excel displays "l" instead of "‚¬" symbol for Euro values lex63 Excel Discussion (Misc queries) 1 April 17th 09 10:10 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How to create a scatter chart with 2 "X" values with common "Y"s M_LeDuc Charts and Charting in Excel 2 September 13th 07 10:26 PM
Making Values Permanent Efrain Excel Discussion (Misc queries) 3 February 13th 07 02:13 PM
Changing "returned" values from "0" to "blank" LATATC Excel Worksheet Functions 2 October 20th 05 04:41 PM


All times are GMT +1. The time now is 08:44 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"