+ Reply to Thread
Results 1 to 5 of 5

Spin Button

  1. #1
    koenigma@hotmail.com
    Guest

    Spin Button

    I have a text box and spin button on a user form, I would like that the
    user could enter a number in the text box and then if they wish to
    change use the spin button.

    How would I have the spin button start with the entered number rather
    than with 1.

    Any help woulf be appricated.

    Kind Regards
    Martin


  2. #2
    keepITcool
    Guest

    Re: Spin Button


    Private Sub SpinButton1_Change()
    TextBox1.Value = SpinButton1.Value
    End Sub

    Private Sub SpinButton1_Enter()
    SpinButton1.Value = Val(TextBox1.Text)
    End Sub


    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    koenigma@hotmail.com wrote :

    > I have a text box and spin button on a user form, I would like that
    > the user could enter a number in the text box and then if they wish to
    > change use the spin button.
    >
    > How would I have the spin button start with the entered number rather
    > than with 1.
    >
    > Any help woulf be appricated.
    >
    > Kind Regards
    > Martin


  3. #3
    koenigma@hotmail.com
    Guest

    Re: Spin Button

    Thanks for your help. I kept on getting an error so I modified as sown
    below:

    Private Sub SpinButton1_Change()
    TextBox1.Text = CStr(SpinButton1.Value)
    End Sub
    Private Sub SpinButton1_Enter()
    SpinButton1.Value = Val(TextBox1.Text)
    End Sub

    Regards
    Martin

    keepITcool wrote:
    > Private Sub SpinButton1_Change()
    > TextBox1.Value = SpinButton1.Value
    > End Sub
    >
    > Private Sub SpinButton1_Enter()
    > SpinButton1.Value = Val(TextBox1.Text)
    > End Sub
    >
    >
    > --
    > keepITcool
    > | www.XLsupport.com | keepITcool chello nl | amsterdam
    >
    >
    > koenigma@hotmail.com wrote :
    >
    > > I have a text box and spin button on a user form, I would like that
    > > the user could enter a number in the text box and then if they wish to
    > > change use the spin button.
    > >
    > > How would I have the spin button start with the entered number rather
    > > than with 1.
    > >
    > > Any help woulf be appricated.
    > >
    > > Kind Regards
    > > Martin



  4. #4
    koenigma@hotmail.com
    Guest

    Re: Spin Button

    Thanks for your help. I kept on getting an error so I modified as sown
    below:

    Private Sub SpinButton1_Change()
    TextBox1.Text = CStr(SpinButton1.Value)
    End Sub
    Private Sub SpinButton1_Enter()
    SpinButton1.Value = Val(TextBox1.Text)
    End Sub

    Regards
    Martin

    keepITcool wrote:
    > Private Sub SpinButton1_Change()
    > TextBox1.Value = SpinButton1.Value
    > End Sub
    >
    > Private Sub SpinButton1_Enter()
    > SpinButton1.Value = Val(TextBox1.Text)
    > End Sub
    >
    >
    > --
    > keepITcool
    > | www.XLsupport.com | keepITcool chello nl | amsterdam
    >
    >
    > koenigma@hotmail.com wrote :
    >
    > > I have a text box and spin button on a user form, I would like that
    > > the user could enter a number in the text box and then if they wish to
    > > change use the spin button.
    > >
    > > How would I have the spin button start with the entered number rather
    > > than with 1.
    > >
    > > Any help woulf be appricated.
    > >
    > > Kind Regards
    > > Martin



  5. #5
    keepITcool
    Guest

    Re: Spin Button

    original works for me..
    BUT
    you may have check the MAX/MIN values of your spinbutton.





    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    koenigma@hotmail.com wrote :

    > Thanks for your help. I kept on getting an error so I modified as sown
    > below:
    >
    > Private Sub SpinButton1_Change()
    > TextBox1.Text = CStr(SpinButton1.Value)
    > End Sub
    > Private Sub SpinButton1_Enter()
    > SpinButton1.Value = Val(TextBox1.Text)
    > End Sub
    >
    > Regards
    > Martin
    >
    > keepITcool wrote:
    > > Private Sub SpinButton1_Change()
    > > TextBox1.Value = SpinButton1.Value
    > > End Sub
    > >
    > > Private Sub SpinButton1_Enter()
    > > SpinButton1.Value = Val(TextBox1.Text)
    > > End Sub
    > >
    > >
    > > --
    > > keepITcool
    > > > www.XLsupport.com | keepITcool chello nl | amsterdam

    > >
    > >
    > > koenigma@hotmail.com wrote :
    > >
    > > > I have a text box and spin button on a user form, I would like
    > > > that the user could enter a number in the text box and then if
    > > > they wish to change use the spin button.
    > > >
    > > > How would I have the spin button start with the entered number
    > > > rather than with 1.
    > > >
    > > > Any help woulf be appricated.
    > > >
    > > > Kind Regards
    > > > Martin


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1