Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default TextBox value

I have a text box in a little application I am working on. I am trying to
get it to keep the current text that is typed into it to stay between calls.
(so I can close the UserForm or workbook, and still have the most recently
typed text still in the TextBox. Having trouble.

Thanks in advance for any tips.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default TextBox value


Hello AD108,

Once the UserForm is closed, all the variables, objects and constants
are destroyed. You can choose to save the textBox text to a Worksheet
cell and reload the TextBox when the UserForm is Activated. If you wish
not to have it on a Worksheet you can save it to the registry using the
SaveSetting command and reload the TextBox at anytime using the
GetSetting command. The last choice and most involved would be to
create a file to hold the text.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=552886

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default TextBox value

Hi

The content goes away when the userform is unloaded. You have to save it
somewhere. If this application is used by several users on the same pc then
save in the registry (see savesetting and getsetting in VBA help), otherwise
the simplest thing is to write it into a cell on a worksheet.

HTH. Best wishes Harald

"AD108" skrev i melding
...
I have a text box in a little application I am working on. I am trying to
get it to keep the current text that is typed into it to stay between

calls.
(so I can close the UserForm or workbook, and still have the most recently
typed text still in the TextBox. Having trouble.

Thanks in advance for any tips.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default TextBox value

Great,
Thanks.
"Leith Ross" wrote
in message ...

Hello AD108,

Once the UserForm is closed, all the variables, objects and constants
are destroyed. You can choose to save the textBox text to a Worksheet
cell and reload the TextBox when the UserForm is Activated. If you wish
not to have it on a Worksheet you can save it to the registry using the
SaveSetting command and reload the TextBox at anytime using the
GetSetting command. The last choice and most involved would be to
create a file to hold the text.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile:

http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=552886



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
Highlight all Text in a Textbox when the textbox is selected RPIJG[_73_] Excel Programming 3 October 28th 05 08:28 PM
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys Minitman[_4_] Excel Programming 0 February 22nd 05 08:50 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:47 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:43 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


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