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: 2
Default Spinbutton Linked to Textbox

I have a spreadsheet using userforms. On the userform,
there are several spinbuttons linked to a textboxs. The
textboxs are formatted to show the values as either
percentages or dollar values. When the user presses the
spinbutton, the values change in the textbox which
adjusts a calculation that takes place in the
spreadsheet. The results of that change appear in a list
box that is located on the same userform. The way it is
working now, the spinbutton value change does not change
the results calculation shown in the list box until the
form is closed and reopened or different spinbutton is
depressed. Controlsource of the spinbutton is set to a
cell on the spreadsheet, which changes each time the
spinbutton is depressed. Now I just want the spreadsheet
to calculate and display the results immediately in the
associated list box. I am a programming rookie, so a
simple explanation on why it isnt happening, and what I
need to do to make it work would be greatly appreciated.

Below is an example of the code from one of the spin
buttons.

Private Sub SpinButton7_change()

Me.TextBox8.Text = Format(Me.SpinButton7.Value /
100, "##,##0%")
Me.TextBox12.Value = Format((((Me.SpinButton7.Value /
100) * 0.6) + ((Me.SpinButton8.Value _
/ 100) * 0.2) + ((Me.SpinButton9.Value / 100) *
0.09)), "##,##0.00%")


End Sub


Thanks for the assistance
Dave
 
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
TextBox linked to cell????? hoyos Excel Discussion (Misc queries) 4 January 21st 10 10:12 PM
Textbox linked to a cell (reposted) Pilot Excel Discussion (Misc queries) 0 March 30th 08 10:45 AM
Textbox linked to a cell Pilot Excel Discussion (Misc queries) 2 March 29th 08 10:29 AM
ComboBox linked to TextBox capt Excel Discussion (Misc queries) 4 February 19th 08 10:26 PM
TextBox linked to a ComboBox? capt Excel Discussion (Misc queries) 3 February 16th 08 02:50 PM


All times are GMT +1. The time now is 12:56 PM.

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"