Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2015, 10:15 AM
jeffk jeffk is offline how can I make a ScrollBar &/or a SpinButton display values? Windows 7 64bit how can I make a ScrollBar &/or a SpinButton display values? Office 2007
Advanced Beginner
how can I make a ScrollBar &/or a SpinButton display values?
 
Join Date: Jul 2012
Location: North of England, UK
Posts: 32
jeffk is on a distinguished road
Default how can I make a ScrollBar &/or a SpinButton display values?

I'm creating a UserForm in Excel 2007 & I want users to be able to Scroll/Spin to the value they want but neither of the ScrollBar or SpinButton display any values?

I know if I create a 'standalone' ScrollBar or SpinButton on a worksheet (developer tab > controls group > insert) I can link it to a cell so the result shows...........how can I get an equivalent affect in a UserForm?

Thanks
Reply With Quote
  #2  
Old 12-30-2015, 03:10 AM
Debaser's Avatar
Debaser Debaser is offline how can I make a ScrollBar &/or a SpinButton display values? Windows 7 64bit how can I make a ScrollBar &/or a SpinButton display values? Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

You need to use another control, such as a TextBox or Label, and update that using the Scrollbar or Spinbar.
Reply With Quote
  #3  
Old 01-01-2016, 07:10 AM
jeffk jeffk is offline how can I make a ScrollBar &/or a SpinButton display values? Windows 7 64bit how can I make a ScrollBar &/or a SpinButton display values? Office 2007
Advanced Beginner
how can I make a ScrollBar &/or a SpinButton display values?
 
Join Date: Jul 2012
Location: North of England, UK
Posts: 32
jeffk is on a distinguished road
Default

Quote:
Originally Posted by Debaser View Post
You need to use another control, such as a TextBox or Label, and update that using the Scrollbar or Spinbar.
Thanks, I thought it'd would be something like that......any clues about how do it?
Reply With Quote
  #4  
Old 01-04-2016, 04:25 AM
Debaser's Avatar
Debaser Debaser is offline how can I make a ScrollBar &/or a SpinButton display values? Windows 7 64bit how can I make a ScrollBar &/or a SpinButton display values? Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

Assuming default names for a Spinbutton and Label control, you would have:
Code:
Private Sub SpinButton1_Change()
    Me.Label1.Caption = Me.SpinButton1.Value
End Sub
Reply With Quote
Reply

Tags
scrollbar, spinbutton, userform



Similar Threads
Thread Thread Starter Forum Replies Last Post
Display multiple values as new values based on selection from template. MvdB Excel 2 09-29-2015 08:51 PM
how can I make a ScrollBar &/or a SpinButton display values? Need to display values with the most votes first PatW Excel 1 02-12-2015 09:22 AM
How to Display Summary Values using Group filter in Task Usage Glenn Faulkner Project 5 03-31-2014 01:14 PM
how can I make a ScrollBar &/or a SpinButton display values? Help with incrementing Spinbutton value. dlowrey Excel Programming 3 11-24-2013 12:28 PM
how can I make a ScrollBar &/or a SpinButton display values? Display unique values and count the number of child items vthomeschoolmom Excel 2 07-25-2013 06:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft