Consulting

Results 1 to 4 of 4

Thread: Solved: ScreenUpdating Problem

  1. #1
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location

    Solved: ScreenUpdating Problem

    I recorded/wrote a whole load of code on one of my office PCs

    I exported the code to a central drive, imported it to the personal.xls workbook of another PC.

    SO the code on the 2nd PC is identical.

    On PC1 Screenupdating = FALSE works fine
    On PC2 it doesn't work at all

    So I record a test macro on PC2 in a new module, and switch screenupdating off succesfully. But when I run the imported macros, doesn't work.

    Next step I deleted the modules from personal on PC2. Created fresh modules, and copied the text from the saved modules into the new modules. Still no joy

    The code works fine, it does everything it's supposed to - except slower because of the screenupdates being visible

    What's going on?

    =========================================================================== ===========
    Edit: I Just noticed that PC1 is running Excel 2003 (no sevice Pack) and Visual Basic 6.3. PC2 is running Excel 2003 SP3 and Visual Basic 6.5. Could this be making the difference?
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    You might check the state of autocalc in both.

    Here are my speed routines:
    http://vbaexpress.com/kb/getarticle.php?kb_id=1035

  3. #3
    VBAX Mentor Teeroy's Avatar
    Joined
    Apr 2012
    Location
    Sydney, Australia
    Posts
    414
    Location
    Does your code call any procedure outside of itself? This may change the state of Screenupdating (commonly at the error handler). And there may be a version difference between a sub being called on the new PC and the original.

    I had the above scenario once and it did my head in until I peppered the code with state checks (followed by a head slapping moment).
    _________________________________________________________________________
    "In theory there is no difference between theory and practice. In practice there is." - Chuck Reid

    Any day you learn something new is a day not wasted.

  4. #4
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location
    Well thanks both for your suggestions. I solved the problem...

    I did some more research and someone else who had a similar proble said it was an add-in issue.

    So I checked my add-ins. It was a skype add-in for MS office. Must have been a bug, but I uninstalled it and both work fine now.
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

Posting Permissions

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