+ Reply to Thread
Results 1 to 19 of 19

Remove padding from ActiveX button

  1. #1
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Remove padding from ActiveX button

    Hi, please see attached image. I have an ActiveX button and I need it to be pretty narrow. Is there a way to remove the padding on top and bottom of the text so I can make the button narrower?

    Thanks

    Button.JPG

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Remove padding from ActiveX button

    Right click the button.

    Use the dots to adjust the size.

  3. #3
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Remove padding from ActiveX button

    It's not a resizing issue. Look at the image attached. They are both the same size with the same text but the bottom one is a form button and the top one is an ActiveX. The form one doesn't have padding around the text, and you can see the text. But, the ActiveX one does and you cannot see the text. Is there a way to remove that padding so I can see the text?

    Attachment 703557

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Remove padding from ActiveX button

    .
    I can't view your second attachments. I suspect you did not use the GO ADVANCED ?

    I recall from experience the ActiveX button can be resized in such a manner as to cover the bottom of the text. So re-sizing would be the method of correction.

    If you can repost your last images, that would help.

  5. #5
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Remove padding from ActiveX button

    Did it work now?

    Button.JPG

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Remove padding from ActiveX button

    .
    I see the images now.

    The top (green) is the Active X ? Does it contain the same term "Templates" ?

    Is there a FONT SIZE difference between the two buttons ?

  7. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: Remove padding from ActiveX button

    Quote Originally Posted by Logit View Post
    .
    I see the images now.

    The top (green) is the Active X ? Does it contain the same term "Templates" ?

    Is there a FONT SIZE difference between the two buttons ?
    To add to Logit's questions... is there perhaps a Line Feed character at the beginning of your text?

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Remove padding from ActiveX button

    Here is a sample of the two buttons here. The two BOTTOM BUTTONS are ActiveX :
    Attached Images Attached Images

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Remove padding from ActiveX button

    .
    What does your ActiveX button look like if you resize it so the CAPTION is showing ?

  10. #10
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Remove padding from ActiveX button

    Both buttons are the same font size. There is not anything before the text. When I size it to the size of the Form button, the text disappears.

  11. #11
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

    Re: Remove padding from ActiveX button

    Hi

    Is there a particular reason why do you want to use an ActiveX button on the worksheet, rather than a Form button???

    zeddy

  12. #12
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Remove padding from ActiveX button

    I want to use an ActiveX button because it allows me to change the color of the button. Upon research, I have found you cannot change the color of a form button.

  13. #13
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Remove padding from ActiveX button

    Do you really need a button specifically? Couldn't you assign the macro to a shape - you can format those in a huge number of ways; or use the Ribbon? ActiveX controls on worksheets are best avoided unless absolutely necessary.
    Remember what the dormouse said
    Feed your head

  14. #14
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Remove padding from ActiveX button

    I just need a rectangle I can click that will run a macro. Doesn't have to be a button.

  15. #15
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Remove padding from ActiveX button

    I think I figured it out. Thanks for the suggestion Rorya!

  16. #16
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467
    Just insert a shape.
    You can use one that looks like a gold bullion bar.
    Or just a simple rectangle. And make it any colour you like.
    Easy to add text to the shape.
    98.6% of experts would avoid using activeX objects on a worksheet if they could use something else instead.

    zeddy
    P.S. I made that statistic up.

  17. #17
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Remove padding from ActiveX button

    .

    P.S. I made that statistic up.
    Probably a close guess. ActiveX button can cause errors that are impossible to fix. Just like MERGED cells.

  18. #18
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Remove padding from ActiveX button

    Noted - will not use ActiveX buttons in the future. I ended up using a colored rectangle and assigning the macro to it. Thanks again for all the help everyone!

  19. #19
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Remove padding from ActiveX button

    .
    Glad you have an answer !

+ 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. Replies: 4
    Last Post: 10-14-2021, 06:00 PM
  2. Is there a way to remove all cell padding?
    By leaning in forum Excel General
    Replies: 11
    Last Post: 11-11-2019, 11:16 AM
  3. [SOLVED] Command Button vs ActiveX Button Causing System Resource Drain
    By Logit in forum Excel General
    Replies: 0
    Last Post: 02-13-2019, 11:49 AM
  4. [SOLVED] VBA to move form button and ActiveX Control button, Shape position
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2018, 02:46 PM
  5. ActiveX Command Button combined with ActiveX List Boxes – VBA Code Needed
    By Stlcards13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2017, 02:56 PM
  6. ActiveX Control Spin Button Copy Button and Change Cell reference?
    By chrstphrbllngs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2016, 04:01 PM
  7. Remove all cell padding from sheet
    By The Phil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 03:43 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