+ Reply to Thread
Results 1 to 20 of 20

How do you run macros in Excel 2007?

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    How do you run macros in Excel 2007?

    Yes, I'm serious, the thread title is a verbatim expression of my query. It is a testament to the severe mental retardation - did I stutter? - of the 2007 and later Office Team at MS, that someone who is probably a 95th percentile performance user must ask this. This and the numerous and serious 2007+ interface failures are why I will likely change from a 50-hour-per-week Excel god and guru to 0.0 when 2003 is forcibly taken from me at the workplace. But for this week, this project, I wish I could get to use some code that I spent months developing.

    The message:
    "Because of your security settings, macros have been disabled. To run macros, you need to reopen this workbook, and then choose to enable macros. For more information about enabling macros, click Help." *(footnote)

    In 2003 you simply go tools/macro/security and pick one of 4 fairly straightforward choices. It's very difficult to get it wrong.

    Now in 2007 I cannot get a macro to run. From opening a .xls made in 2003, I go alt-F8 and try to run one. It says, "No, you can't; hit help for help." Naturally help is broken as it has been since - what - 1997? (Highlight the word SUM and hit alt-H or F1. Or SUMIF. I'm not kidding. You must go to Google to get help on Excel - at least in my standard configuration. Must. Anyway...)

    So off to Google, and off to visit other users, where there are a dozen theories on how to do it. The leading answer appears to be "Go to the Trust Center and set options there." As astonishing as it would be if this simple option was that obfuscated, I tried anyway. And the answer there is so shocking that I just can't believe it:

    Once I navigated the counterintuitive path to macro settings, it appears to give you 4 choices:
    - Run everything, period. (The suicide option)
    - Run nothing. Ever.
    - Run nothing. Ever. Oh, but you get a cool useless message box! (Why? What does that accomplish?)
    - Set up digital signatures (Oh no you di'n't. Quit f***ing around, MS. I just want to run my macro.)

    So How do you run macros in Excel 2007?
    Just for myself. I just want to run my own macros. What - minimally - do I click?
    [short of the suicide option]


    * By the way, why in the ganja-glazed haze of Redmond offices would I reopen a workbook that I just, just opened?
    Last edited by Oppressed1; 02-04-2014 at 09:14 PM.
    Chip, if you can read this, you're STILL making the world a better place with your immeasurably valuable gifts. Every week, you continue to help me (and untold numbers of others) tremendously. Practically no alternative outlets can match your effectiveness, even over the vast number of topics you demystify and empower usage of. You were, and still are, amazing.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How do you run macros in Excel 2007?

    Hi Opressed1,

    In the early days of Windows, Office and VBA you could AutoRun a macro when a file opened. If you've heard of the Minerva Virus, it was one of those.

    In early versions of Office, Microsoft trusted all good programmers to be good and not screw things up. That was found to be a false assumption.

    In more current versions of Office, VBA macros don't run unless you are sure they aren't going to screw you. This is why VBA and Excel got better.

    If you don't like the current scheme for protecting yourself against viruses then get ready to get infected.

    I'm sorry you don't like the extra questions when you open an .xls or .xlsm but believe me they are important.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    So each and every time I want to run a macro, I have to navigate to "run all macros with no protection," run the macro, and then when I've run it, navigate to "don't run any macros ever?" That sounds simply absurd.

    Thanks for the attempted defense of MS's action, but frankly each and every one of your concerns was addressed well before even the straightforward 4 choices in 2003, and in 2003 itself which wasn't broken. Just "prompt user whether to run." What's the issue with that (Other than MS knows what the user wants better than the user does)? You don't have to try to defend that. Just tell me, short of digsigs how to prompt-to-allow.

    And frankly if admins still have security concerns even then, presuming the users are too incompetent to practice safe hex, cripple it at the worksite. But I should be able to run macros at my own home without either enabling all macros always (suicide) or developing digital signatures. (What percentage of users use digsigs?).

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How do you run macros in Excel 2007?

    You only need to accept the "watch out this file has macros" when you open it.

    I think there are "safe site" settings in some browsers that will allow them to get into your home network and or you can run macros automatically..

    In later versions of Excel you needed to get a Security Tested tag for your work. See if the attached gives you a prompt to allow macros.
    Attached Files Attached Files

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How do you run macros in Excel 2007?

    hi there. i'm not using my Excel 2007 right now, but it's similar to Excel 2010. so if what i mention is different, there should be something close. explore around. you should be using:
    Disable all macros with notification
    so that always notifies you if you want to enable macros. if you want to run it at home using the same file every time and without needing to enable them, go to the Windows icon -> Options -> Trust Center -> Trust Center Settings -> Trusted Locations -> Add New Location. so you can add that particular folder you trust. avoid putting a general C drive though, unless you are sure everything inside is something you can trust.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Registered User
    Join Date
    02-04-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How do you run macros in Excel 2007?

    have you tried saving the file as an xlsm (macro enabled) ?

  7. #7
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    Quote Originally Posted by benishiryo View Post
    you should be using:
    Disable all macros with notification so that always notifies you if you want to enable macros.
    I am. When I open the file I'm asked nothing, the file just opens. When I attempt to run a macro it says no.
    if you want to run it at home using the same file every time and without needing to enable them, go to the Windows icon -> Options -> Trust Center -> Trust Center Settings -> Trusted Locations -> Add New Location. so you can add that particular folder you trust. avoid putting a general C drive though, unless you are sure everything inside is something you can trust.
    Thank you for that practical answer, but I mean, really, whether a macro will run will depend on which folder I place it, unless I use the suicide option? Good God. I ought to be able to answer a prompt upon opening: yes, I want to run macros for this file. If moving to the "happy folder" works, at least that's something so thanks for that. (By folder, that's plus subtree, I gather? The "general C" warning sounds like it means root and below for that warned example.)

  8. #8
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    Quote Originally Posted by MarvinP View Post
    You only need to accept the "watch out this file has macros" when you open it.
    Marvin I get nothing when I open your text.xls or my .xls with macros.
    I think there are "safe site" settings in some browsers that will allow them to get into your home network and or you can run macros automatically.
    I'm open to recommended practice with Firefox
    In later versions of Excel you needed to get a Security Tested tag for your work. See if the attached gives you a prompt to allow macros.
    The messagebox in your test file did not fire, even when activating a different workbook and reactivating it. There was no notification either, at any time - as far as I could see some workbook just opened up with a blank sheet or two. However I appreciate your consideration in sticking with this and providing that.

    Perhaps there's a configuration setting or issue in play. I'm told by I.T. that I'm vanilla as can be though. In that light, I note that I'm also not being asked whether to update links the way 2003 did when the linked files were not already open. I've heard that for 2007 a marvelously arcane trust center setting approach is recommended for that, but Google again shows numerous theories on how to get this pathetically simple task done. Jeeeeeeezz....

  9. #9
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How do you run macros in Excel 2007?

    - Run nothing. Ever. Oh, but you get a cool useless message box! (Why? What does that accomplish?)
    This setting should show a message bar (not the old-fashioned pop up message box, unless you have the VB Editor open) below the formula bar, with an option to enable macros.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: How do you run macros in Excel 2007?

    There is also a setting within Trust Center where the message bar can be disabled, so you better check that as well.

    File links are in the Options > Advanced > General section.


    Did you I.T. also apply all the service packs and updates to your install?
    Personally I would have upgraded to xl2010
    Cheers
    Andy
    www.andypope.info

  11. #11
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    Quote Originally Posted by Izandol View Post
    This setting should show a message bar (not the old-fashioned pop up message box, unless you have the VB Editor open) below the formula bar, with an option to enable macros.
    I'll have to go down Andy's path, because I just get OK and [useless]Help buttons. It does sound like configuration. I'll have to get into that tonight.

  12. #12
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    Message bar setting in trust center says "Show the message bar in all applications where content has been blocked." What does this message bar look like? Top or bottom of screen? Here's what I getxl07-bs.JPG
    Last edited by Oppressed1; 02-05-2014 at 04:46 PM. Reason: added "setting in trust center"

  13. #13
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    Hmmm, now I do see something new, above the formula bar, nicely blending into the screen-hogging silly big icon section atop the window. I hadn't seen it before because it disappears when you go alt-F8. Is that the macro bar?

    So it appears that I do get to answer a prompt, and I owe the Office developers a little prayer of gratitude for making the prompt experience both easier and definitely more confusing (even after I buy into the post-2003 paradigm). Personally I WANT a message box for me and for anyone who uses my workbooks, but they didn't ask me in between bong hits. Okay, then I'll consciously look for the "macro bar" every time I open a workbook for the rest of my life.

    At least you all gave me polite and constructive advice. I am able to now run macros, as long as I look for and click on the "macro status bar" first.

    Oh, one more thing I've discovered while writing this, not just for me, but for anyone to run a macro in 2007 - and maybe 2010, and maybe forever, thank you Jensen you fool - that status bar (if I'm calling it correctly) disappears after, I'm not sure, but maybe, a minute or two. That's right. It just disappears. Thank you, Microsoft, you clueless imbeciles; message boxes don't do that. If you go get a coffee after starting to load a slow loading workbook, you miss your window to act. (Should I bother to ask if you can go view/toolbars/macro status bar to recover it? Or is that too logical and productive? Sorry, can't help myself in the fact of such utter massive incompetence.)

    I just tried that again. Maybe 2 minutes after opening, POP - it disappears. I know it's insane that I would have to make it reappear, but is there a way, short of reloading the workbook? I can (but Jensen couldn't) easily see ignoring the bar at first, using the workbook, then deciding, oh, I want to run a macro 5 minutes later. Can you?

  14. #14
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    I don't think anyone mentioned it, but a seemingly more intuitive route to the "Disable all macros with notification" (which I've had set all along BTW) looks like
    Developer tab
    Code pane
    Macro Security
    Macro settings
    Click the choice, or alt-d
    All this being the 2007 counterpart to alt-T-M-S-M for medium security in 2003.
    BTW alt-T-M-S is one of the shortcuts that still does what it did before.

    I still have questions if anyone can survive past my ranting in the prior post. Please understand me: I love spreadsheets, and I may be one of if not the fastest 2003 user on the planet, at least for numerous actions. It's just very upsetting that my speed (and all of the FAST users that I know - I'm talking the uberfast users) - is crushed in '07+. It was all so, so, unnecessary. I rant in hoping to humiliate the transgressors and in some small hope effect change. Anyway, I understand that this may offend some and they may not read any further. But what I'm wondering is, can you get the "macro security bar" to reappear after it disappears (whether by going alt-F8, or just disappearing on its own), short of closing and reopening the workbook? Thanks.

  15. #15
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How do you run macros in Excel 2007?

    I do not think so. This behaviour is fixed from 2010. 2007 is not good version, I am afraid.

  16. #16
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    Quote Originally Posted by Izandol View Post
    I do not think so. This behaviour is fixed from 2010. 2007 is not good version, I am afraid.
    Sounds like many of you are on 2010 and I can do that. I try to spend some time on each version so I don't blindly overengineer by taking advantage of newer version features but shutting out those who are still on e.g. 2007 or 2003. (That's not to say I reject using mucho sort columns and conditional formats and such; I just don't want to do so "blindly" )

  17. #17
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How do you run macros in Excel 2007?

    Quote Originally Posted by Izandol View Post
    I do not think so. This behaviour is fixed from 2010. 2007 is not good version, I am afraid.
    Not sure I'd entirely agree with you there
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  18. #18
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: How do you run macros in Excel 2007?

    Interesting diplomatic retort. Just expressing my perspective, it's all about the interface. A million lines is swell; expanded conditional formatting features are swell; but I'd give up all of that a thousand times over for a productive interface. I haven't heard anyone say that the 2010 *interface* was worse, while some say that it erased a tiny bit of the 2007 interface screwups. At least that's my essentially anecdotal impression from lurking around.

    BTW now I understand why MS says to reopen the workbook in order to run macros, even if I opened it 15 seconds earlier - because in order for me to see the "macros are disabled" message, that means I didn't enable it, and if I'm seeing this messagebox, the macro enable bar is gone and can't be restored. Still wholly lame, but I understand their message text choice now.

  19. #19
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: How do you run macros in Excel 2007?

    Best. Thread. Ever.

  20. #20
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How do you run macros in Excel 2007?

    Quote Originally Posted by Richard Buttrey View Post
    Not sure I'd entirely agree with you there
    You do not have to. Everything is opinion.

    I do not know anyone who will recommend 2007 and have seen many times it has been described as Office Vista - I do not think this is complimentary. For sure, without at least Service Pack 2 in place, 2007 is terrible. In my opinion.

+ 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. Excel 2007 : Excel 2007 macros
    By captain_henri in forum Excel General
    Replies: 1
    Last Post: 03-13-2011, 12:06 PM
  2. How to allow macros in Excel 2007
    By etrader in forum Excel General
    Replies: 8
    Last Post: 07-22-2009, 03:43 AM
  3. Saving without macros excel 2007
    By george1982 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2009, 05:31 AM
  4. Macros will not run in Excel 2007
    By cispus78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2009, 05:13 AM
  5. Macros in Excel 2007
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-28-2009, 07:13 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