Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2007, 11:00 AM
roe roe is offline
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form - Changing Range by SpinButton

Hi
I want to change the Range.Value by SpinButton but it doesn't work
What can be the problem?

Private Sub SpinButton1_SpinUp()
    Counter.Value = Counter.Value + 0.5
    Label17.Caption = Label14.Caption - Counter.Value
    Sheets("List3").Range("F2").Value = Val(Label17.Caption)
' This alternative also doesn't work
' TextBox2.Value = TextBox1.Value + Counter.Value
End Sub

The procedure changes Label.caption but doesn't change the textbox.value

Are there any form sample macros available on the internet?
Thanks for the tips






Similar Threads
Thread Thread Starter Forum Replies Last Post
Randomize a range frankjuel Excel VBA 5 February 24th, 2016 10:26 AM
Changing the BackColor property of a Form Qman69 Visual Basic 2005 Basics 0 March 14th, 2007 04:43 PM
dynamic changing the image when a form get submit pandad Servlets 1 January 27th, 2006 04:05 PM
Check form for integers in range... guynorton Classic ASP Basics 8 October 27th, 2004 08:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.