Results 1 to 7 of 7

Thread: [RESOLVED] Excel 2010 VBA only - PC Freezes

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    5

    Resolved [RESOLVED] Excel 2010 VBA only - PC Freezes

    I have been using VBA ever since it was VBA and I have a problem which only occurs within Excel's VBA and not in any other of the Office applications code editor.

    Furthermore, it only happens with Excel 2010 and not in any previous version.

    The problem is that if I am in Excel's VBA then at random intervals the PC freezes completely and I have to reach for the power switch at the front of the machine.

    I was having enough of that so I decided to reinstall Windows completely. So, I reached for the XP disk, reformatted my hard drives, reinstalled Windows, put on Office, applied the countless thousand updates and, yes, it did it again within minutes.

    Short of having to move back to Office 2007, is there a fix for this?

  2. #2
    Member
    Join Date
    Mar 2012
    Posts
    34

    Thumbs up Re: Excel 2010 VBA only - PC Freezes

    Is your PC connected to a network?
    We have the same problem with our PCs while using any application. It appears that some network action is causing our PCs to lock for a second or two on up to 2 - 3 minutes.

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    5

    Re: Excel 2010 VBA only - PC Freezes

    Yes, the PC is connected to a network but this isn't anything like that. This is a totally dead and utterly inert PC.

    The mouse pointer won't move, the Num Lock keys won't toggle the lights and the C-A-D chord just doesn't work.

    I am wondering if this is a common issue or just this machine? I can't, in all honesty, imagine it to be the machine as this only happens on Excel 2010's VBA.

    In a few weeks I am up/downgrading to a Windows 7 box and I will see what happens there. But after getting strange Conversion errors in Word 2010 (when opening Word .doc files) I wonder how much of this is my hardware and how much of this is Excel 2010.

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Excel 2010 VBA only - PC Freezes

    does this happen when specific code is running?
    what is the vintage of this hardware?
    does vba from other office apps have the same problem?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    5

    Re: Excel 2010 VBA only - PC Freezes

    Hello there

    No, the code need not be running. In fact, it's only when I am in the IDE when this happens so, strictly, the code isn't executing at all.

    The vintage of the kit? Hmm, bits have been updated and replaced over the years. The latest hard drive went in the other week when I did a full system reformat and started anew. Memory soak tests and CPU hammering tests left running overnight failed to produce anything of note.

    This only happens in Excel VBA. Thankfully not in Word's IDE (I have thousands of lines of code in that lot combined!) and I haven't done anything in Outlook 2010 and just a few dozen modules in Access and there's nothing wrong there.

    It's just Excel's IDE which is causing this freeze. I am going to experiment a little more to see if I can narrow it down.

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    5

    Re: Excel 2010 VBA only - PC Freezes

    Initial tests of working on .xlsm files indicate that things are fine, it's only working on pre-Office '97 format .xls files which, at this moment, appear to be causing the issue.

    I decided to try this because of the terrible Word conversion failure issues when opening .doc files rather than .docx format files. So, this could be due to Excel not handling previous version files properly, even though this particular .xls file (saved in pre-'97 format) was built by an Office 2007 or 2010 application.

    Of course, this could be one of things which may be true or this may just blow up in my face in the next two minutes. We shall see.

    The problem with this is that if I have any clients using pre-'97 Office then I can't shove out .xlsm files to them.

    More testing to follow...

  7. #7

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    5

    Re: Excel 2010 VBA only - PC Freezes

    I am finally marking this as Resolved.

    If I am working on spreadsheets with VBA written from a 2010 tool but saved as .xls format then my machine hangs.

    However, if I work on it as an .xlsm file then it's fine.

    Clearly, this is an issue with MS' tools which never happened before. So, yes, it's resolved but not satisfactorily.

    Thanks everyone.

    - Malc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width