Results 1 to 6 of 6

Thread: Application.Screenupdating = False Not Working In Workbooks().Activate In Windows 8

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Rep Power
    0

    Application.Screenupdating = False Not Working In Workbooks().Activate In Windows 8

    I have VBA code that works under windows 7 and excel 2013. It sets application.screenupdating to false just before every windows (filename).activate function. When I tried the same code on excel 2013, but Windows 8 the application.screenupdating = false stopped working only on the Windows or workbooks activate functions. I have tried the following currentflag = application.screenupdating and currentflag shows false. I tried debug.print application.screenupdating and it showed true in the debugger. To make sure that each change was not effected by the debugger. I turned off the debugger and tried the same code and it flickers between the books. Any ideas?

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Application.ScreenUpdating will always show True in the debug window. But that shouldn't alter the way it works when a routine / function is run. To evaluate this better, can you post a sample file which replicates the scenarios you explained above?
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    In addition, if the workbooks are in the same instance, then try using Workbooks().Activate instead of Windows().Activate.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #4
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Rep Power
    0
    Quote Originally Posted by Excel Fox View Post
    In addition, if the workbooks are in the same instance, then try using Workbooks().Activate instead of Windows().Activate.
    I already tried using Workbooks versus Windows and there was no difference, however the instance idea is interesting. How do I open 2 workbooks in separate instances versus the same instance. How will I know which mode I am in?

  5. #5
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    You can open another instance of Excel just how you would open the first instance.

    Regarding the code itself, what exactly are you trying to do? Can you post a sample file, and show us what the issue is?
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  6. #6
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Rep Power
    0
    I found the problem. Windows 8 treats changing instances diferently than Windows 7 and XP. Office 2010 require different file open to create different instances. It's native mode was open in the same instance. Office 2013 forces each workbook into it's own instance. However Windows 8 treats switching instances diferently. Windows 8 ignores the screenupdating = false when it goes between instances. How do I force office 2013 to start a workbook in the current instance?

Similar Threads

  1. Set Pivot Table SubTotal Display Property To False
    By JulyMoon in forum Excel Help
    Replies: 1
    Last Post: 10-18-2013, 09:29 PM
  2. Replies: 4
    Last Post: 07-10-2013, 04:35 AM
  3. Replies: 5
    Last Post: 01-12-2013, 02:49 AM
  4. Application.ScreenUpdating = False not working
    By LalitPandey87 in forum Excel Help
    Replies: 2
    Last Post: 11-08-2011, 08:55 AM
  5. Listview not working in Windows 7 - 32 bit
    By Rasm in forum Excel Help
    Replies: 2
    Last Post: 07-09-2011, 07:40 PM

Posting Permissions

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