Results 1 to 16 of 16

Thread: Excel. Button shrinks!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Location
    Surrey, UK
    Posts
    163

    Excel. Button shrinks!

    Has anyone experienced their buttons on an excel sheet shrinking when you click on them ?

    It happens to me sometimes. Or the text inside the control (eg a combobox) gets bigger each time I use it.

    Doesn't always happen and not always on the same sheet either.

    Any one any clue as to what the .... is going on with this?!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Excel. Button shrinks!

    No idea.

    Does this happen on all your spreadsheets or just one of them?

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

    Re: Excel. Button shrinks!

    Which version of Office Excel are you using 2003 or 2007?
    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

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Location
    Surrey, UK
    Posts
    163

    Re: Excel. Button shrinks!

    2003. I work through a remote connection to a server that all my company works off so I don't know if that has anything to do with it or not compared to a standalone version

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

    Re: Excel. Button shrinks!

    Are you able to attach a screen shot of it looks like? This will help me and others better understand the problem.
    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

  6. #6
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Excel. Button shrinks!

    There is no solution for this at the moment. It is a bug. same problem here...


    http://www.vbforums.com/showthread.php?t=552717
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  7. #7
    New Member
    Join Date
    Mar 2010
    Posts
    3

    Re: Excel. Button shrinks!

    This is a very odd problem in deed. I am a very heavy excel user and this problem has recently waisted tons of my time. Has anybody come across any new improvements in this bug? It happens intermittently and I can't seem to place a finger on why. I have re-added all my comboboxes adjusted the zoom property etc..etc...etc...etc and nothing. I have noticed that it seems to be unique to comboboxes directly on a spreadsheet. It doesn't seem to effect anything on a vba form.

    Anyway, if anybody has anything new...do tell.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Location
    Surrey, UK
    Posts
    163

    Re: Excel. Button shrinks!

    Yes. I found I was getting this problem when moving to a different computer with a different resolution.

    I'd open my remote desktop on one computer and open my Excel sheet. Then, without closing Excel on my session, I'd move to a different computer with a different screen resolution and jump into my session there. It was then that I would start seeing all my controls changing size when clicking on them. The solution was to not do that ! Or save and close ALL of Excel before moving computer....

  9. #9
    New Member
    Join Date
    Mar 2010
    Posts
    3

    Re: Excel. Button shrinks!

    Thanks for the input. I will test your theory on my system. I use multiple monitors when i am working with Excel and VBA and they do run in different resolutions. I will give it a try.

  10. #10
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Excel. Button shrinks!

    This is a bug in Excel 2003. According to Microsoft, it was fixed with Service Pack 1.

    Read this:
    Controls on an Excel 2003 worksheet change size after you change the screen resolution

    That also provides a hotfix.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  11. #11
    New Member
    Join Date
    Mar 2010
    Posts
    3

    Re: Excel. Button shrinks!

    Thanks! That did the trick. What an odd problem.

  12. #12
    New Member
    Join Date
    Dec 2011
    Posts
    1

    Re: Excel. Button shrinks!

    I still have this problem. Here is the fix I use:

    Sub Reset_Buttons()
    '
    ' Kluge to reset button and font size to resolve shrinking/enlarging buttons
    ' Bisham Singh 2011 12 23
    ' This is sledge hammmer approach. If there is a better one, please let us know.
    ' I run this everytime a button is triggered.

    Dim mShape As Shape
    Dim mWorkSheet As Worksheet
    Dim mOLE As OLEObject

    For Each mWorkSheet In ThisWorkbook.Sheets
    For Each mOLE In mWorkSheet.OLEObjects
    mOLE.Width = 74
    Next
    For Each mOLE In mWorkSheet.OLEObjects
    mOLE.Width = 75
    mOLE.Height = 35
    mOLE.Object.FontSize = 10
    mOLE.Object.FontBold = False

    Next
    Next
    End Sub

  13. #13
    New Member
    Join Date
    Apr 2012
    Posts
    1

    Re: Excel. Button shrinks!

    Geezus - this issue has been killing me for months!

    Tried EVERYTHING listed above (and more!) - nothing worked...

    UNTIL NOW!

    I just found the solution on another site and wanted to share it here. I take NO credit for this! If it works for you - then AWESOME - but don't thank me... I'm just passing it along.

    OK - here ya go:

    i) In design view, select all the controls in the sheet.

    ii) Right click and select Grouping ->Group to group the controls

    Then save the workbook.

    By golly THAT did the trick for me!

    Good luck!

    - RJ

  14. #14
    New Member
    Join Date
    Jun 2012
    Posts
    1

    Re: Excel. Button shrinks!

    Bingo! Love the group option. This bug has driven me nuts.

  15. #15
    New Member
    Join Date
    Feb 2013
    Posts
    1

    Re: Excel. Button shrinks!

    Same thing, the buttons shrinks.
    On one sheet I have a mix of control and if I group them, I get an error about a connection which name cannot be found in the project's code while I know it was once there.
    I also have the problem with charts legends that shrinks overtime.

  16. #16
    New Member
    Join Date
    Aug 2014
    Posts
    1

    Re: Excel. Button shrinks!

    Go to Developer Tab, Design Mode.
    Then right click your button and select Format Control.
    Select properties and select don't move or size.
    Thab

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