Results 1 to 8 of 8

Thread: EXCEL - How do you make a Radio button larger in an excel sheet?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Location
    ALABAMA
    Posts
    13

    EXCEL - How do you make a Radio button larger in an excel sheet?

    Hi,

    I cannot find out how to make a radio button larger. I was told you may be able to do it through code, but I can't figure it out. Any help? I was wondering if i could choose my own size?

    Thanks,

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: EXCEL - How do you make a Radio button larger in an excel sheet?

    Are you using VB6 or VBA (Visual Basic within excel)?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Location
    ALABAMA
    Posts
    13

    Re: EXCEL - How do you make a Radio button larger in an excel sheet?

    Visual Basic inside Excel

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: EXCEL - How do you make a Radio button larger in an excel sheet?

    Thread moved from the 'CodeBank VB6' forum (which is for you to post working code examples, not questions) to the 'Office Development/VBA' forum... note that while it certainly isn't made clear, the "VB Editor" in Office programs is actually VBA rather than VB

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: EXCEL - How do you make a Radio button larger in an excel sheet?

    Code:
    Sheets("sheet2").Shapes("optionbutton1").Width = 399
    change sheet and radio button name to suit, same for height
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Location
    ALABAMA
    Posts
    13

    Re: EXCEL - How do you make a Radio button larger in an excel sheet?

    Quote Originally Posted by westconn1 View Post
    Code:
    Sheets("sheet2").Shapes("optionbutton1").Width = 399
    change sheet and radio button name to suit, same for height

    Okay. So I need to right click the Button and hit assign macro, and go to new and change the settings from there?
    When I did that nothing happened. mine was: Sheets("sheet1").Shapes("optionbutton1").Width = 399

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: EXCEL - How do you make a Radio button larger in an excel sheet?

    So I need to right click the Button and hit assign macro
    i doubt that you would want to change the size of the button from within its own click event

    When I did that nothing happened.
    put a breakpoint on that line of code to see if it ever runs
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  8. #8
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: EXCEL - How do you make a Radio button larger in an excel sheet?

    Quote Originally Posted by anoble1 View Post
    Hi,
    I cannot find out how to make a radio button larger. I was told you may be able to do it through code, but I can't figure it out. Any help? I was wondering if i could choose my own size?
    Thanks,
    Reading your reply to westconn1, it sounds to me as if you actually just want to change the size of the radio button and to do it via cosde was the work-around!
    If thats true, did you rigth click on the RadioButton and formated it?
    The change via code and via formatting will NOT change the small cirlce of the Button, the whole Control (circle with text) will be changend!
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

Posting Permissions

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



Click Here to Expand Forum to Full Width