+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Need to get textbox/Spinbutton to show 1 by default

  1. #1
    Registered User
    Join Date
    01-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    18

    Need to get textbox/Spinbutton to show 1 by default

    sorry i dont have a sample sheet, but i just need textbox to show 1 when connected to a spinbox. i have it setup so it changes the value of the checkbox, and i know that i can set it up to have the value default to 1, but it doesnt show the default number in the textbox and it shows up as blank.

    i appreciate the help if you can offer it!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need to get textbox/Spinbutton to show 1 by default

    Hi robnez,

    See the attachment where controls seems to be working as outlined by you. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Need to get textbox/Spinbutton to show 1 by default

    ok so now that i was able to get ahold of the sample book i was using i added a spinbutton when you click on the button. unfortunately that workbook wasnt what i was looking for, but i definitely appreciate the help. i didnt setup the macro to add-in the data into the worksheet since i can figure that out later, just want the default number to show up as 1 in the textbox when you click on the "Click to add Call Information!!!!!" button.

    sample workbook macros.xlsm

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need to get textbox/Spinbutton to show 1 by default

    Hi robnez,

    See the attached workbook, where the text box has 1.
    You can change it anytime by going to properties -> values. Thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Need to get textbox/Spinbutton to show 1 by default

    hm. ok than im not sure what i was doing than. at work i have excel 2007, and i did just that, but it wont show the default number. you have to change it before it shows anything. i had it defaulted to 1, but it text box stayed blank. appreciate the quick reply :D

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need to get textbox/Spinbutton to show 1 by default

    Hi robnez,

    It is the default value OR Properties -> Value?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    01-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Need to get textbox/Spinbutton to show 1 by default

    I just figured it out today. i didnt realize that i needed to set the textbox value to 1 to automatically show 1 when the macro runs. thanks for the help though! :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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