+ Reply to Thread
Results 1 to 7 of 7

Excel 2013 screen update issues when switchng between two open workbooks.

  1. #1
    Forum Contributor
    Join Date
    01-08-2017
    Location
    Salt Lake City, Ut.
    MS-Off Ver
    2019 and 365
    Posts
    135

    Question Excel 2013 screen update issues when switchng between two open workbooks.

    I have tried to find a solution to this problem which I found threads back in 2014 that indicated it was a common problem with excel 2013 that at that time had not been resolved or not work around had been found.

    I have my source workbook and I am importing multiple selected cell ranges from multiple sheets from a target workbook. The normal code "Application.ScreenUpdating = False " and "Application.ScreenUpdating = True" does not seem to stop the screen flicker when switching back and forth between the two workbooks. Since I cannot simply select a large range from one sheet to copy from the target and then paste into the source, I have to switch back and forth at least three times for each sheet, before moving on to others that I have to repeat the sequence again.

    Has anyone found a solution to stop the screen updating that occurring when switching or Activating between two workbooks?

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Excel 2013 screen update issues when switchng between two open workbooks.

    Quote Originally Posted by dentler View Post
    Since I cannot simply select a large range from one sheet to copy from the target and then paste into the source
    Why can't you copy\paste a large range? What copy\paste method are you using? Can you show your code? If there is a size limit, why not copy\paste the large range by dividing it up into smaller sub-ranges?

    My larger point is; there is likely a way to copy\paste your large range without having to switch (select) between workbooks. I can't give you specifics without better understanding what you are doing.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Excel 2013 screen update issues when switchng between two open workbooks.

    Hi dentler,

    If those large chunks of different workbooks are Tables of data you can use Power Query to pull all them in without flicker. You will need to install the Power Query Add-In that Microsoft provides to do this.

    http://www.contextures.com/excelpowe...inetables.html or
    http://www.modeloff.com/thetechnicia...h-power-query/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    01-08-2017
    Location
    Salt Lake City, Ut.
    MS-Off Ver
    2019 and 365
    Posts
    135

    Re: Excel 2013 screen update issues when switchng between two open workbooks.

    If were so simple to copy across the entire range I would, but these are ledger sheets and the structure for each is slightly different than the next with three different column structure each with different starting rows for what is being copied.

  5. #5
    Forum Contributor
    Join Date
    01-08-2017
    Location
    Salt Lake City, Ut.
    MS-Off Ver
    2019 and 365
    Posts
    135

    Re: Excel 2013 screen update issues when switchng between two open workbooks.

    I'll research this a bit more and possibly give it a try. If your read my previous reply to AlphaFrog, it may be possible to make three different tables for each ledger. In the meantime I tried another approach that I found looking today which also did not work. In that it suggest creating a simple sub with the lines for screeupdating false, and then true, with a call to the actual code that runs the code that pulls data from the target workbook into the source. It did not work either.

  6. #6
    Forum Contributor
    Join Date
    01-08-2017
    Location
    Salt Lake City, Ut.
    MS-Off Ver
    2019 and 365
    Posts
    135

    Re: Excel 2013 screen update issues when switchng between two open workbooks.

    Marvin, after loading and playing with Power query, it might work, but I was wondering if you might have any code examples of how to pull data using power query from another workbook. I recorded the macro but it does not show how to establish the connection and fails on trying to run the query. The code I ended up with after recording the macro is as follows:

    "Sub DataQuery()
    '
    ' DataQuery Macro
    '

    '
    Selection.AutoFilter
    ActiveSheet.ListObjects("Feb").Resize Range("$A$1:$P$101")
    Range("Feb[[#Headers],[Feb ]]").Select
    ActiveSheet.ListObjects("Feb").Resize Range("$A$1:$P$102")
    Range("Feb[[#Headers],[Column1]]").Select
    End Sub"

    I appreciate any help you could throw my way.

  7. #7
    Forum Contributor
    Join Date
    01-08-2017
    Location
    Salt Lake City, Ut.
    MS-Off Ver
    2019 and 365
    Posts
    135

    Re: Excel 2013 screen update issues when switchng between two open workbooks.

    So I found a solution searching online with the following two subs:
    "Public Sub StroboscopeOff()
    Application.ScreenUpdating = False
    Application.Calculation = xlCalculationManual
    Application.EnableEvents = False
    ActiveSheet.DisplayPageBreaks = False
    Application.DisplayStatusBar = False
    Application.DisplayAlerts = False
    End Sub

    Public Sub StroboscopeOn()
    Application.ScreenUpdating = True
    Application.Calculation = xlCalculationAutomatic
    Application.EnableEvents = True
    ActiveSheet.DisplayPageBreaks = True
    Application.DisplayStatusBar = True
    Application.DisplayAlerts = True
    End Sub
    "
    In the actual code I am running I call the "StroboscopeOff" as well as "Application.ScreenUpdating = False " at the top of the code and then in reverse at the bottom of the code, I call the "StroboscopeOn" as well as "Application.ScreenUpdating = True". Combined this reduced the flicker to almost none. Once that was completed I am running an excel complier to create an .exe file. The end result was no flicker at all.

    I am still interested in finding out more from MarvinP regarding power-query. I'll try contacting him directly. It may come in useful later.

+ 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 2016 screen flashing between two workbooks despite screen updating turned off
    By Cumberland in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2016, 03:07 PM
  2. Connecting Excel 2013/16 to Access 2013/16 (SELECT, INSERT, and UPDATE)
    By mrb783 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-31-2016, 03:04 PM
  3. Screen update issues during code execution
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-01-2016, 09:40 AM
  4. Replies: 3
    Last Post: 01-28-2015, 07:51 PM
  5. Screen Flicker - EXCEL 2013 Only
    By A_Pass in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2014, 11:31 AM
  6. [SOLVED] Open workbooks update the main one and close the other workbooks
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2013, 07:12 AM
  7. How to update open Workbooks open on other computers?
    By extremecorvette in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2011, 12:40 PM

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