+ Reply to Thread
Results 1 to 1 of 1

VBA just stops in Windows 7 but not Windows XP...

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question VBA just stops in Windows 7 but not Windows XP...

    **UPDATE**
    This actuall does fail in XP as well, after a bit more testing. So confused.
    ---

    Hey folks,

    So I've been scouring the internet since yesterday to try and figure out what the deal is with this, with no success. I have some code that, when run on my Windows XP machine in Excel 2010, executes flawlessly. On my Windows 7 (main) machine, however, when I get to any line that involves changing the Interior of a cell, the code executes that line, and then simply ceases. No error message, no nothing, the macro just stops running. At first I thought it was a problem with trying to tell a cell to be formatted in a way in which it was already formatted (I had had this issue with trying to tell a cell to have .NumberFormat = "$#,##0" when it already had that format), so I build in some if statements, which helped with the number formatting but now do not help on the following code:

    Please Login or Register  to view this content.
    It's ugly, I know. It was a lot cleaner when I had first written it; this is the result of me trying various means of solving the issue, but to no end. Any place in that code when I try to assign a value to x.Interior.<something>, the code will do so, and then just stop. Other than simply finishing this project on my XP machine (which isn't really a viable long-term solution as we're eventually all moving to Windows 7), can anyone offer some insight or suggestions as to what is going on and how to fix it?

    Thanks,
    Tom
    Last edited by TomCook; 09-20-2012 at 07:02 PM. Reason: Discovered it also failed in XP

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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