+ Reply to Thread
Results 1 to 5 of 5

2010 Excel stops working when running macros

  1. #1
    Registered User
    Join Date
    07-22-2009
    Location
    Canton, GA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Angry 2010 Excel stops working when running macros

    I have a macro that I have been running for years. It simply opens several work sheets that are password protected fills in the password. I have been running this for years. Today when I tried to run it Excel keeps crashing. Nothing has changed since Friday when I last ran it. Any ideas on why this is happening and what I can do to fix the problem?

  2. #2
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: 2010 Excel stops working when running macros

    Are the worksheets on seperate drives and have any permisions been changed?

    Edit: Have you tried accessing everything manually to check it isn't a curupted file?
    also try F8ing through the macro to see where it falls over.
    Last edited by Leon V (AW); 12-23-2013 at 01:19 PM.
    Sub Reputation()
    Dim Problem as Variant
    Dim Reputation as Integer
    For Each Problem in Forum.Threads
        If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1
    Next Problem
    End Sub

  3. #3
    Registered User
    Join Date
    07-22-2009
    Location
    Canton, GA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: 2010 Excel stops working when running macros

    They are all on the same drive. As far as I know nothing changed. Our IT department did maintenance work this weekend but said they changes no permission. If I type in the first few lines of the macro in a blank sheet it seems to work fine, but there are a lot of lines to the macro.

    Workbooks.Open Filename:= _
    "s:\everyone\budget & Forecast\budgets\revenue & cogs - DataVoice.xlsx", UpdateLinks:=0, Password:="XXXXX"

    There are 17 files it opens. It is a very simple macro.

  4. #4
    Registered User
    Join Date
    07-22-2009
    Location
    Canton, GA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: 2010 Excel stops working when running macros

    I eliminate the first file opening in the macro and the macro works just fine. There must be something about the first file in the macro that causes the problem but I cannot figure out what that is because as soon as I open that file and enable the content it crashes excel.

  5. #5
    Registered User
    Join Date
    07-22-2009
    Location
    Canton, GA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: 2010 Excel stops working when running macros

    It appears that the file was corrupt and once I eliminate the one file form the macro it works fine.

+ 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 2010 crashing when running macros....my code?
    By dietcoke802 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2013, 05:56 PM
  2. Macros in master file that 30 other files need to use stops working
    By Lynee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2013, 05:40 AM
  3. Macros working fine on Windows (Excel 2010), but not on Mac (Excel 2011)
    By six6to8eight in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-29-2012, 11:12 PM
  4. Running macros in excel 2010
    By mezzi1606 in forum Excel General
    Replies: 4
    Last Post: 01-23-2012, 05:03 AM
  5. why excel stops running??
    By usiddiqi in forum Excel General
    Replies: 2
    Last Post: 05-17-2006, 05:14 AM

Tags for this Thread

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