Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default updating a form for next use

I have a user form where I has some default variables that show when my
routine is started. The user can then change the variables. However,
I've been trying to create a sub-routine that could save new default
settings, so that when the routine is run the next time, the same
settings do not need to be re-entered. I have been trying to do this
without using an output file, which I don't want to have.

what i have is something like this:


on startup, a default procedure useses this code:

..tb1.value=.tb1.text

then, i have a command button that does this:

..tb1.text = tb1.value



however, the text setting does not get saved for the next running of
the procedure. Is there a way to do this without using an input/output
file?

thanks

Smokii

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default updating a form for next use

Hi Smokii

The values that you wish to access when the Userform is loaded, need to be
stored somewhere. Where is your choice, but possibilities could include :

worksheet cells, possibly on a hidden (or very hidden) worksheet
a text file
custom workbook properties
registry settings.

Normally choice of repository would be dictated by personal predeliction and
convenience/security considerations.

--
Regards,
Norman



wrote in message
ups.com...
I have a user form where I has some default variables that show when my
routine is started. The user can then change the variables. However,
I've been trying to create a sub-routine that could save new default
settings, so that when the routine is run the next time, the same
settings do not need to be re-entered. I have been trying to do this
without using an output file, which I don't want to have.

what i have is something like this:


on startup, a default procedure useses this code:

.tb1.value=.tb1.text

then, i have a command button that does this:

.tb1.text = tb1.value



however, the text setting does not get saved for the next running of
the procedure. Is there a way to do this without using an input/output
file?

thanks

Smokii



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
updating a spreadsheet with a 'Search' User Form Mel[_5_] Excel Discussion (Misc queries) 1 January 13th 12 05:31 PM
Custom Form for updating data in an existing spreadsheet Xhawk57 Excel Discussion (Misc queries) 2 November 12th 08 04:45 PM
Form Updating during Execution BillCPA Excel Discussion (Misc queries) 0 August 9th 06 04:55 PM
Updating Worksheet Through User Form Saadi Excel Programming 3 December 20th 04 08:53 PM
Updating form labels from code in a module news.verizon.net[_2_] Excel Programming 2 October 29th 03 04:03 AM


All times are GMT +1. The time now is 05:59 AM.

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"