+ Reply to Thread
Results 1 to 25 of 25

All Macros Are Enabled, But Macros Are Still Not Running

  1. #1
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    All Macros Are Enabled, But Macros Are Still Not Running

    I have Excel 2013. I am having a problem in which, in settings, I instruct Excel to allow all macros to run, but then when I open the sheet and try to run the macro, I get the message that macros have been disabled. See screenshots below.

    However, it is not consistent. When I first open Excel, then open the sheet and try to run the macro, it will usually run successfully. I may be able to open the sheet once or twice, or four or five times, or maybe eight or ten times, and it runs successfully. But then, at a certain point, right around this point, the macros stop working. And I have to close Excel and open it up again.

    BUT: In addition to closing Excel normally, I have to open Windows Task Manager, go to the Processes tab, and close EXCEL.EXE, which is still resident after I terminate the program. Once I do this, I can then run the macro successfully, a few times, until I can't anymore, when I have to repeat this process all over again.

    So it appears that Excel opens in a certain state that allows me to run macros and will close itself normally, but then at some point it switches to another state that disables my ability to run macros, and stays resident in Task Manager after I terminate it.

    I tried two things: (1) unistalling and reinstalling Office; and (2) turning off my Norton anti-virus/firewall temporarily to see whether it was Norton borking my macors. Neither of these tactics solved the problem.

    Does anyone recognize this problem and know of a fix?
    Attached Images Attached Images

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Most of us run with the disable all macros with notification option - maybe Excel doesn't like the complete license???
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Can anybody help?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    So - what happened???

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Something in your code is hanging in memory and that's why you can't run it because it thinks that the workbook is already open. I would use Code Cleaner or MVP Orlando's program to Decompile then Recompile your workbook. This could be a hidden error before proceeding any further with troubleshooting.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    I had a Windows Update install itself on Wednesday and I lost the ability to run a lot of code. Turns out an unneeded file had been added to my system, so I removed it and things went back to normal.

    C:\Users\[user.name]\AppData\Local\Temp\Excel8.0\MSForms.exd
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  7. #7
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by xladept View Post
    So - what happened???
    I'm sorry, I thought you were just making an off-handed comment. I didn't realize this was a serious attempt to help. No, no difference.

  8. #8
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by JBeaucaire View Post
    I had a Windows Update install itself on Wednesday and I lost the ability to run a lot of code. Turns out an unneeded file had been added to my system, so I removed it and things went back to normal.

    C:\Users\[user.name]\AppData\Local\Temp\Excel8.0\MSForms.exd
    Thanks for the tip. I don't have any folder in there call Excel anything, but I did find two MSForms.exd files, one under Word8.0 and one under VBE, both put there on 12/2. I read a couple of things about that file here, here and here, but I can't determine whether the one in the VBE folder, specifically, will affect the macro issue.

    I can try renaming the one in the VBE file and see whether that has any effect, and if it borks something else unexpectedly I could change it back.

    EDIT: Just tried it, and out of the chute, it did not work. The very first time I opened the worksheet, I got the error message.
    Last edited by chasfh; 12-11-2014 at 10:37 AM.

  9. #9
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    You could do a system restore to 12/1 which would undo any installed updates after that and see also

  10. #10
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    That file shouldn't cause the symptoms you describe.

    Does this happen with all macros, or just one particular workbook?
    Last edited by romperstomper; 12-11-2014 at 11:04 AM.
    Remember what the dormouse said
    Feed your head

  11. #11
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by abousetta View Post
    Something in your code is hanging in memory and that's why you can't run it because it thinks that the workbook is already open. I would use Code Cleaner or MVP Orlando's program to Decompile then Recompile your workbook. This could be a hidden error before proceeding any further with troubleshooting.
    Is it possible that the workbook is not the problem, but something with the Excel program itself? I ask because when the macro is working and I close Excel, it completely closes the process (which can be seen in Task Manager), and I can reopen Excel and successfully run the macro again.

    But at that point when the macro fails and I close Excel, I look in Task Manager and EXCEL.EXE is still resident. When I reopen Excel immediately to run the macro, it fails. But when I go back to Task Manager and end the EXCEL.EXE process manually, then reopen Excel, the macro works again. Until it fails, and I have to repeat this process through Task Manager.

    This is why I am wondering whether this is a program problem instead of a worksheet problem. What do you think?

  12. #12
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Here is something else I just now took notice of:

    In my Recent list, I see the workbook PERSONAL.XLSB, from the folder C:\Users\[Name]\AppData\Roaming\Microsoft\Excel\XLSTART\PERSONAL.XLSB. I did not manually open that file, so why would it be listed in my Recents? This isn't normal, is it?

    If not, I'm starting to think there must be something happening that triggers Excel to open this file, which might be borking my macro. Does anybody recognize this problem?

  13. #13
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by romperstomper View Post
    That file won't cause the symptoms you describe.

    Does this happen with all macros, or just one particular workbook?
    I was just answering your question when I noticed the PERSONAL.XLSB issue I just described.

    The answer is, I have a little macro (converting default decimal values into baseball batting average-type values) that works universally across all open workbooks; the macro I have been describing works only in the one workbook. When the workbook macro fails, the universal macro still works.

  14. #14
    Registered User
    Join Date
    12-11-2014
    Location
    Dayton, OH
    MS-Off Ver
    Office 2013
    Posts
    1

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by JBeaucaire View Post
    I had a Windows Update install itself on Wednesday and I lost the ability to run a lot of code. Turns out an unneeded file had been added to my system, so I removed it and things went back to normal.

    C:\Users\[user.name]\AppData\Local\Temp\Excel8.0\MSForms.exd
    This solved my problem on 4 different computers, some running Office 2007 and some 2010! Thank you Jerry.
    Last edited by JBeaucaire; 12-11-2014 at 12:44 PM.

  15. #15
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    BTW, it is perfectly normal that Personal.xlsb opens whenever you open Excel - that is its purpose.

    I am intrigued (and surprised) that the activex problem is also causing the symptoms you described. Useful information!

  16. #16
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by romperstomper View Post
    BTW, it is perfectly normal that Personal.xlsb opens whenever you open Excel - that is its purpose.

    I am intrigued (and surprised) that the activex problem is also causing the symptoms you described. Useful information!
    Does PERSONAL.XLSB show up in your Recents?

  17. #17
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by mthatch19 View Post
    This solved my problem on 4 different computers, some running Office 2007 and some 2010! Thank you Jerry.


    Sorry I'm new here...meant to quote jbeaucaire in my post.

    Did you have the Excel8.0 folder in your Temp file as be indicated?

  18. #18
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by mthatch19 View Post
    This solved my problem on 4 different computers, some running Office 2007 and some 2010! Thank you Jerry.


    Sorry I'm new here...meant to quote jbeaucaire in my post.
    Ahh - I missed the change of poster. I still think the OP's issue is unrelated then.

  19. #19
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by chasfh View Post
    Does PERSONAL.XLSB show up in your Recents?
    If you mean the File - Recent workbooks list, then no. Is it opening visible or hidden?

    Note: based on what you describe I think the issue may lie with your specific code - can you post it?

  20. #20
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by romperstomper View Post
    If you mean the File - Recent workbooks list, then no. Is it opening visible or hidden?

    Note: based on what you describe I think the issue may lie with your specific code - can you post it?
    I'm believe it is opening hidden. I opened a bunch of .csv files and they were all among my four recents, but when I went to open the sheet with the macro (2015 Player Card), PERSONAL.XLSB shows up with it:

    ExcelRecents.png

    But when I go to View/Window/Arrange All and view all the open windows, only 2015 Player Card appears. PERSONAL.XLSB is not windowed with it.

    Here is the entire code for the macro I am having trouble with:

    Sub RecordPlayerInput()
    '
    ' RecordPlayerInput Macro
    ' Rewritten by [Name] 12/2/14 because Excel 2013 cannot process macros from Excel 2003.
    '
    ' Keyboard Shortcut: Ctrl+q
    '
    Range("C7").Select
    ActiveWindow.LargeScroll ToRight:=2
    Range("C7:BG7").Select
    With Selection.Font
    .ColorIndex = xlAutomatic
    .TintAndShade = 0
    End With
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Application.CutCopyMode = False
    Selection.Copy
    End Sub


    One thing to note here: I did not previously mention that the sheet is a Compatibility Mode sheet originally created in Excel 2003. I could not update the sheet to an XLSX because the original macro did not work in 2013. So I dumped that macro and re-stepped into a new macro that does exactly the same thing.

  21. #21
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    I can't see anything there that would have been incompatible between versions, other than the TintAndShade property didn't exist in 2003. Nor can I see anything that could explain the behaviour you are describing.

    If you open Excel in Safe Mode (hold down the Ctrl key while starting Excel normally) do you still have the erratic macro disabled behaviour?

  22. #22
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by romperstomper View Post
    I can't see anything there that would have been incompatible between versions, other than the TintAndShade property didn't exist in 2003. Nor can I see anything that could explain the behaviour you are describing.

    If you open Excel in Safe Mode (hold down the Ctrl key while starting Excel normally) do you still have the erratic macro disabled behaviour?
    Yes, I have the exact same problem when opening in Safe Mode.

  23. #23
    Registered User
    Join Date
    08-31-2006
    Location
    Humboldt Park, Chicago
    MS-Off Ver
    Office 365 MSO (16.0.12430.20198) 64-bit
    Posts
    33

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    I don't know whether this is related, but frequently when I turn on my computer in the morning and open Office apps, including Excel, they open in various states of minimization, and which are strewn seemingly randomly across my desktop. And occasionally, when I close out an Office app and reopen it in the same session (i.e., same day), it opens minimized then, as well.

    I don't understand why this should happen, because I always have all Office apps maximized to the window, so I do not know why they would not retain that state from instance to instance, the way Office 2003 did.

    Things like this really make me miss Office 2003. God, I miss Office 2003.

  24. #24
    Forum Contributor
    Join Date
    08-18-2018
    Location
    Canada
    MS-Off Ver
    365
    Posts
    151

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    Quote Originally Posted by JBeaucaire View Post
    I had a Windows Update install itself on Wednesday and I lost the ability to run a lot of code. Turns out an unneeded file had been added to my system, so I removed it and things went back to normal.

    C:\Users\[user.name]\AppData\Local\Temp\Excel8.0\MSForms.exd
    I have this in my computer and macro seems normal, do I need to delete it?

  25. #25
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: All Macros Are Enabled, But Macros Are Still Not Running

    No, it's just a temp file.
    Rory

+ 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. How do I Disable Macros on a File where Macros were Previously Enabled?
    By Alves76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 10:26 AM
  2. Keep Macros enabled on the computer
    By newbiedrewbie in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-03-2013, 10:42 PM
  3. Macros enabled workbook keeps saying macros are disabled
    By joker3 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-15-2013, 11:28 PM
  4. choose default macros Not Enabled / Macros Enable Setting
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2006, 08:10 AM
  5. Enabled macros
    By raw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2005, 07:10 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