LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default UserForm: force to update controlsources

G'Day,

On my userform I have got a multipage with dozens of textboxes and
spinbutton, which is not located on the multipage, but on the main area of
the UserForm..
If the user enters text into a textbox on the multipage and hits the
spinbutton the entry is gone lost (the ControlSouce cell is not going to be
updated).
This does not happen if the TextBox is "on the same page" with the
spinbutton.

This is a kind of a "failure-mode" I'd like to control, caused by the user
not necessarily knowing the need to enter the data before spinning onto the
next record.

How can I force update of the ControlSources of TextBoxes located on the
Multipage, on the event the SpinButton is hit ?

Private Sub SpinButton1_SpinDown()
If ScrollBar1.Value = ScrollBar1.Max Then GoTo 77
ActiveCell.Offset(1, 0).Select
ScrollBar1.Value = ScrollBar1.Value + 1
FillForm
77 End Sub

Sub FillForm()
MyLine = ActiveCell.Row
TextBox1.ControlSource = "Q" & MyLine
TextBox2.ControlSource = "R" & MyLine
TextBox3.ControlSource = "S" & MyLine
TextBox4.ControlSource = "T" & MyLine
TextBox5.ControlSource = "U" & MyLine
End Sub

Thanks
Gabor
Thans


 
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
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
Must be a way to force focus back to sheet instead of UserForm - isn't there? Les[_4_] Excel Programming 2 July 29th 03 12:45 PM


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