Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Worksheet update from UserForm

I have a userform which has a number of lines like the ones below. Currently
these values are placed on the worksheet after I click a commandbutton
(finished). What I would like is for the data to be placed on the worksheet
as I move from one textbox to the next. Is this possible?


rng(1, 47).Value = TextBox1.Text
rng(1, 48).Value = TextBox2.Text
rng(1, 53).Value = TextBox4.Text
rng(1, 54).Value = TextBox5.Text
rng(1, 71).Value = TextBox7.Text
rng(1, 59).Value = TextBox8.Text
rng(1, 60).Value = TextBox9.Text


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Worksheet update from UserForm

Yes. Just put the code in the Exit event of the TextBox.

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Sheet1.Cells(1, 47).Value = TextBox1.Text
End Sub


--

Vasant

"Patrick Simonds" wrote in message
...
I have a userform which has a number of lines like the ones below.

Currently
these values are placed on the worksheet after I click a commandbutton
(finished). What I would like is for the data to be placed on the

worksheet
as I move from one textbox to the next. Is this possible?


rng(1, 47).Value = TextBox1.Text
rng(1, 48).Value = TextBox2.Text
rng(1, 53).Value = TextBox4.Text
rng(1, 54).Value = TextBox5.Text
rng(1, 71).Value = TextBox7.Text
rng(1, 59).Value = TextBox8.Text
rng(1, 60).Value = TextBox9.Text




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
Userform update Ken McLennan[_3_] Excel Programming 0 November 1st 04 10:07 AM
Need help on Update Button on Userform marty6[_17_] Excel Programming 2 May 16th 04 02:29 PM
Dynamic update of UserForm TextBox Tom_C Excel Programming 7 January 15th 04 06:58 PM
How can I update the userform? Phillips Excel Programming 1 November 21st 03 05:33 PM
UserForm Update on the Fly Nigel[_4_] Excel Programming 2 October 15th 03 06:23 PM


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

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"