+ Reply to Thread
Results 1 to 4 of 4

Excel : VBA: Corrupted Command Button

Hybrid View

  1. #1
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Excel : VBA: Corrupted Command Button

    I would appreciate any thoughts or insight you might have into this scenario.

    I developed a workbook for a client a couple of years ago. All has been working fine until he recently opened the workbook and discovered the command buttons don't work. Not the obvious macros not enabled or Event handling switched off.

    He sent a copy over to me and, sure enough, they don't work. On investigation, I typed the button name, btnSetup, into the name box ... and it selects an apparently blank button. I can check its parameters and I can delete it but that seems about all. The button itself is still present but, seemingly, now separated somehow. And the code for the command button click Event is still there. So, everything is present but now split into component unlinked parts.

    I can fix the problem but I am intrigued as to the cause ... and if there is a remedy.

    As it stands, I will copy the command button from an old copy of the workbook, rename it and link it to its code. Think that works (will test later).

    In the meantime, any thoughts, ideas, suggestions or solutions.

    Thanks, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Excel : VBA: Corrupted Command Button

    Hi,

    If the buttons are ActiveX, I would suspect the recent Office updates which changed the fm20.dll and caused numerous bugs with userforms. If you can, I would very much recommend replacing them with Form controls.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,741

    Re: Excel : VBA: Corrupted Command Button

    Thinking about it, I can probably just recreate the button from scratch.

    @xlnitwit: thanks for the suggestion. No reason why not. The click Event just calls a subroutine in a standard module. Do you have any documentation, references or specific knowledge base entries and dates for the problem.

    Thanks for the quick reply

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Excel : VBA: Corrupted Command Button

    This is the only official support response I have seen besides a few MS posts to questions in Answers or Technet- https://support.office.com/en-us/art...ad=US&fromAR=1

    Here is one of the Answers posts as well- https://answers.microsoft.com/en-us/...d-b088bc131411

    It doesn't specifically mention MSForms controls on a worksheet, but it would seem to me to be a large coincidence for the two to be unrelated. I also recall there was a similar issue a couple of years ago with an Office update that rendered all activex controls on worksheets useless- and there were others many years ago- which is why I do my level best to avoid them.

+ 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. Create a command button with code with a command button
    By jakara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2013, 01:28 PM
  6. Replies: 1
    Last Post: 09-17-2007, 09:57 PM
  7. Replies: 0
    Last Post: 11-03-2005, 11:00 AM

Tags for this Thread

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