+ Reply to Thread
Results 1 to 5 of 5

Remove command button caption margin

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    27

    Remove command button caption margin

    Hi,

    I created a button with the control tool box, but it's a small button- Inside the caption is only a number "1", but the margin of the button erase half of the number.
    How can I remove the margins?

    Thank you

  2. #2
    Registered User
    Join Date
    03-19-2016
    Location
    England
    MS-Off Ver
    2010 and 2013
    Posts
    17

    Re: Remove command button caption margin

    Quote Originally Posted by Alfredim View Post
    Hi,

    I created a button with the control tool box, but it's a small button- Inside the caption is only a number "1", but the margin of the button erase half of the number.
    How can I remove the margins?

    Thank you
    Hi, do you mean you want a bigger button so you can see the number 1?

    If so, right click on the button. You can then either

    1) change the size of the button by selecting in the menu: Format Control then Size and change the size to something bigger.
    2) after right clicking, left click somewhere on the spreadsheet once. You will notice the button will have circles in the corners and sides. You can then pull the button to the size you want.

    Because you mention margins, you can also find a Margins option by following point 1).
    Last edited by ExcelsBiggestFan; 03-19-2016 at 11:46 AM.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Remove command button caption margin

    You can increase the size of the button manually by right clicking on the button and dragging one of the vertical sizing handles or a corner sizing handle until the number shows properly or you can right click on the button, go to the Developer tab, click on Properties and change the HEIGHT value to a larger value until the number displays properly.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    10-20-2018
    Location
    Arizona
    MS-Off Ver
    2016
    Posts
    1

    Re: Remove command button caption margin

    Quote Originally Posted by ExcelsBiggestFan View Post
    do you mean you want a bigger button so you can see the number 1?
    It seems to me that the OP wants to keep his small button, but the forced margins between the caption text and the button border prevent him from doing so while keeping the caption visible.

    I have the same issue and do not see any button properties that allow modification to interior button text margins. What am I missing?

    Caption_Margins.png

  5. #5
    Registered User
    Join Date
    12-21-2017
    Location
    Wokingham, England
    MS-Off Ver
    office 365 2013
    Posts
    46

    Re: Remove command button caption margin

    Not sure if this helps, this is the first time I have been in a position to contribute to a solution so please let me know if it did, I know the last post was a long tome ago but you never know!

    I had the same problem using an ActiveX control button that I wanted to fit into a cell for aesthetic reasons, it was so small the caption could not be seen at all!

    I replaced it with a Form Control button from Developer>Controls>Insert and was able to access both margins and alignment properties to reduce the size of the button and still allow all the caption to be visible. My button was to call a VBA Sub which it does successfully.

    Attachment 750050Attachment 750051

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. naming Command Button caption in VBA
    By milo1984 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2016, 11:45 AM
  2. Command Button Caption
    By tapsmiled in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-23-2014, 09:57 PM
  3. Command Button Caption distortion
    By rboote in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2008, 11:01 AM
  4. Changing the caption of a Command Button
    By Colin M in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2007, 12:24 PM
  5. [SOLVED] using vba to change command button caption
    By PaulaO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2006, 02:40 PM
  6. [SOLVED] changing the caption of a command button
    By JWCrosby in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2005, 04:15 PM
  7. [SOLVED] Command Button Caption
    By Qaspec in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2005, 12:06 PM

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