Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Userform with 5 textbox and 1 needs to refresh to have total

hey

I have 5 text boxes which 1 of them has to be a running total of what has
been entered in. what I tried linking the 5 textboxs to a cell and then for
the one that i want to have the total in i have made its value = cell however
this does not seem to update. any ideas? i dont want the user to input this
textbox so i disabled it will that make a difference??

Any help will be appreicated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Userform with 5 textbox and 1 needs to refresh to have total

Try in your userform code:

Private Sub TextBox1_Change()
Me.TextBox5 = Val(Me.TextBox1) + Val(Me.TextBox2)+Val(Me.TextBox3) +
Val(Me.TextBox3)
End Sub

Repete this for each textbox 2-4

Then, to prevent the user from accessing Textbox5, don't Disable it.
Instead, in the userform design mode, Rt click the textbox
PropertiesLocked=True

"VBAfunkymonk" wrote:

hey

I have 5 text boxes which 1 of them has to be a running total of what has
been entered in. what I tried linking the 5 textboxs to a cell and then for
the one that i want to have the total in i have made its value = cell however
this does not seem to update. any ideas? i dont want the user to input this
textbox so i disabled it will that make a difference??

Any help will be appreicated

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Userform with 5 textbox and 1 needs to refresh to have total

Why not use the change event of each of the 4 textboxes to calculate the sum
and put that in textbox 5?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"VBAfunkymonk" wrote in message
...
hey

I have 5 text boxes which 1 of them has to be a running total of what has
been entered in. what I tried linking the 5 textboxs to a cell and then

for
the one that i want to have the total in i have made its value = cell

however
this does not seem to update. any ideas? i dont want the user to input

this
textbox so i disabled it will that make a difference??

Any help will be appreicated



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 with 5 textbox and 1 needs to refresh to have total funkymonkUK Excel Discussion (Misc queries) 1 February 17th 05 01:45 AM
userform textbox Phil Excel Worksheet Functions 5 January 16th 05 06:59 PM
Textbox in userform Harald Staff Excel Programming 0 September 8th 04 11:51 AM
Textbox in userform shaharul[_6_] Excel Programming 3 April 15th 04 12:54 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 07:45 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"