Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello:
How can I make that a textbox in a userform should remember the users entry even when it was unloaded already? Thanks Art |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You need to assign a public variable on a standard module and have that variable equal the textbox, when the userform is unloaded the public variable unless set to nothing will be the last value of the textbox. -- Simon Lloyd Regards, Simon Lloyd 'www.thecodecage.com' (http://www.thecodecage.com) ------------------------------------------------------------------------ Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=32986 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
You could capture the value when the iserform closes and store it and then re-load the value when the userform next loads. Private Sub UserForm_Activate() TextBox1.Text = Sheets("Sheet1").Range("A1").Value End Sub Private Sub UserForm_Terminate() Sheets("Sheet1").Range("A1").Value = TextBox1.Text End Sub Mike "art" wrote: Hello: How can I make that a textbox in a userform should remember the users entry even when it was unloaded already? Thanks Art |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text Entry | Excel Worksheet Functions | |||
Auto entry of data based on entry of text in another column or fie | Excel Discussion (Misc queries) | |||
Changing none text entry to text? | Excel Discussion (Misc queries) | |||
Use custom format to add text to a text entry. | Excel Worksheet Functions | |||
Text entry help | Excel Discussion (Misc queries) |