+ Reply to Thread
Results 1 to 5 of 5

Macro assignment to button failing

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2011 mac
    Posts
    44

    Macro assignment to button failing

    I have several buttons/ dd's with macros assigned to them. I had been editing a macro and then found that none of the macro assignments existed any longer. I've tried re-assigning [R click then assign, but when I next R click the assignment is again blank), re-launching Excel, even from a complete reboot without success. The macro does work when the file first opens, then fails. Oddly the macros do work if I open the file in OpenOffice.

    I have not changed my macro settings.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro assignment to button failing

    Hello tays01s,

    Welcome to the Forum!

    There may be many reasons why this code is failing. To get an answer to this problem more quickly, you should post a copy of your workbook.

    Please post your workbook. It would help to see your layout and any formulas or code you have written. If your workbook contains

    sensitive information please redact it before posting.

    To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Picture
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    05-08-2013
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2011 mac
    Posts
    44

    Re: Macro assignment to button failing

    File uploaded.
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro assignment to button failing

    Hello tays01s,

    I have assigned some of the macros to the buttons. They work correctly when the buttons are clicked. The buttons maintain their assigned macros when the workbook is reopened. Are you enabling the macros by answering the security dialog when the workbook opens?

  5. #5
    Registered User
    Join Date
    05-08-2013
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2011 mac
    Posts
    44

    Re: Macro assignment to button failing

    Yes, I always enable my macros. I retried and failed to maintain assigned macros in the original and uploaded files. However, the 14.3.4 Office update had just downloaded. Installed it and the problem appears to have vanished, ie. all macros were assigned and working without me doing any fixes.

    Any ideas why Excel would suddenly kill macro assignments? Corrupted code fixed by the update??

+ 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