+ Reply to Thread
Results 1 to 4 of 4

Command button will not execute all the time

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Orange, California
    MS-Off Ver
    Excel 2007
    Posts
    8

    Command button will not execute all the time

    I have a commandbutton on a spreadsheet that refers to macro in VBA. When I first open the workbook and try to click on the button nothing will happen.

    I have to enter into the design mode right click on the button and select CommandButton Object/edit, then click off to deselect the button, then exit design mode.

    Now the button works.

    any and all help is welcome
    Fluce
    Last edited by fluce; 10-02-2012 at 05:59 PM.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Command button will not execute all the time

    without seeing the workbook its difficult to say. can you upload it?
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Orange, California
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Command button will not execute all the time

    Here is the file.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Command button will not execute all the time

    I copied the code and inserted it into a new module. Module 3. I deleted your cmd button and created a new one > assigned the macro and it seems to be working fine
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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