+ Reply to Thread
Results 1 to 5 of 5

Command Button Shrunk

  1. #1
    Registered User
    Join Date
    07-15-2010
    Location
    Birmingham, UK
    MS-Off Ver
    Excel 2003
    Posts
    16

    Command Button Shrunk

    Hello all,

    A few years ago someone on here very helpfully setup what I think is called a Command Button and the coding to go with it, on a spreadsheet for me.

    I'm not too up on the Excel coding and terminology so forgive me, but I effectively needed what I thought was a Macro to run some commands at the click of a button - although I don't think it was actually setup as a Macro, as it doesn't show in my Macro list, but does show in Developer VBA. There was a handy button for me to click on the s/sheet to run this Command, but a few weeks back it randomly shrunk ! For me to use it, I now have to zoom right in and there is just a fine-line of space for me to be able to click it which is very tricky. On occasion the button has actually dissappeared completely and I have to recover earlier saved versions of the s/sheet.

    I've no idea how to increase the size of the Command button again. I've googled it and a few suggestions said to right click on it etc, but no options appear when I right click it.

    Could anybody help with this please ?

    If it helps, I've posted the Command info:

    Please Login or Register  to view this content.


    Many thanks in advance
    David
    Last edited by AliGW; 05-23-2020 at 07:54 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,353

    Re: Command Button Shrunk

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    07-15-2010
    Location
    Birmingham, UK
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Command Button Shrunk

    That makes sense - apologies I'm not a regular user of the forum and hadn't realised.

    I've just revised that now.

    Cheers
    David

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,353

    Re: Command Button Shrunk

    Thanks - I've moved them for you, as you had missed the top and bottom lines of code.

  5. #5
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    377

    Re: Command Button Shrunk

    In the Developer tab, click 'Design Mode'. then click on your CommandButton1. You should get small circles in each corner/side. Use them to re-size the button.

    Then 'right-click' on the button and select 'Format Control'.
    Under the 'Size' tab, enter the size you want for the button. Tick 'Lock aspect ratio'
    Under the 'Properties' tab, make sure option 2 or 3 is selected; Don't size with cells.

    Turn 'Design Mode' off (click again so it is no longer highlighted).

    Hope this helps.

+ 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: 2
    Last Post: 02-02-2016, 10:27 PM
  2. Insert Command Button that will Activate Command Button on a Different Sheet
    By realvirtuality1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2016, 02:11 PM
  3. VBA code to create command button. Print all sheets then delete command button.
    By Declamatory in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2015, 05:18 PM
  4. Make a Command Button Visible from another Command Button
    By trevor2524 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2014, 10:11 AM
  5. [SOLVED] vba code, command bar, command bar button, one button works but not two
    By amazingg64 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2012, 09:55 AM
  6. Replies: 1
    Last Post: 09-17-2007, 09:57 PM
  7. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 AM

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