locked
Macro's won't run in Visual Studio 2010 RRS feed

  • Question

  • User-858993849 posted

    I have them enabled in tools, can see the macros, run is an option, but nothing happens when I run them.

     

    Any ideas? 

    Monday, September 6, 2010 10:14 AM

Answers

  • User470413944 posted

    Hi,

    Are you using Windows Vista or Windows 7,  please check your UAC settings for running marcos.

    Or you can try to run Visual Studio as Administrator.

    I hope this can be helpful for you. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 8, 2010 6:34 AM
  • User-246839449 posted

    I had this problem too. After multiple attempts to fix it, looking at things like permissions etc.

    I discovered it was a stupid mistake I made.

    I had another macro in another module that didn't compile (I had semi-colons at the end of lines).

    Even though I was running a macro in a different module it didn't seam to matter.

    If you are having this problem an easy thing you can check is: look in the error list for any errors in your code. For a C++ or C# developer it's very easy to put semi-colons at the end of your lines out of habit.

    See: http://stackoverflow.com/questions/1249604/visual-studio-2005-macros-wont-run/20380211#20380211

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 4, 2013 11:14 AM
  • User2130895234 posted

    I am having the exact same problem, but in VS 2005.  It just started recently.  I've checked that Macros are enabled, and I have permissions.  I'm running as an admin under Windows 7 with UAC turned off.  I can't run any macro, not even any of the samples.  I also checked under "View / Error List..." and there are no errors or warnings.  I've tried running any macro in debug mode, setting a breakpoint on the first line of code, and it never gets there.  Any ideas on how to fix?

    Thanks,

    Mark

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 18, 2014 1:54 PM
  • User-113911611 posted

    Mark,

    The recent Windows Update broke macros in Visual Studio 2005-2010. See this page for some additional information.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 19, 2014 12:23 AM

All replies

  • User470413944 posted

    Hi,

    Are you using Windows Vista or Windows 7,  please check your UAC settings for running marcos.

    Or you can try to run Visual Studio as Administrator.

    I hope this can be helpful for you. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 8, 2010 6:34 AM
  • User-858993849 posted

    Am using Windows 7, and running as administrator.

     

    Thanks for the reply! 

    Wednesday, September 8, 2010 7:24 AM
  • User-246839449 posted

    I had this problem too. After multiple attempts to fix it, looking at things like permissions etc.

    I discovered it was a stupid mistake I made.

    I had another macro in another module that didn't compile (I had semi-colons at the end of lines).

    Even though I was running a macro in a different module it didn't seam to matter.

    If you are having this problem an easy thing you can check is: look in the error list for any errors in your code. For a C++ or C# developer it's very easy to put semi-colons at the end of your lines out of habit.

    See: http://stackoverflow.com/questions/1249604/visual-studio-2005-macros-wont-run/20380211#20380211

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 4, 2013 11:14 AM
  • User2130895234 posted

    I am having the exact same problem, but in VS 2005.  It just started recently.  I've checked that Macros are enabled, and I have permissions.  I'm running as an admin under Windows 7 with UAC turned off.  I can't run any macro, not even any of the samples.  I also checked under "View / Error List..." and there are no errors or warnings.  I've tried running any macro in debug mode, setting a breakpoint on the first line of code, and it never gets there.  Any ideas on how to fix?

    Thanks,

    Mark

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 18, 2014 1:54 PM
  • User-113911611 posted

    Mark,

    The recent Windows Update broke macros in Visual Studio 2005-2010. See this page for some additional information.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 19, 2014 12:23 AM