+ Reply to Thread
Results 1 to 11 of 11

Excel 2007 VBA...suppress "opening" message when refreshing pivot data

  1. #1
    Registered User
    Join Date
    04-21-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    In Excel 2007, I have a workbook that loops through and opens a series of other workbooks containing pivot tables and data and does a "refresh all" on those workbooks. My problem is that I want this to be an automated process that I can start and minimize and work on other things...BUT...on a few of my pivot workbooks with especially large data files, when the code hits the line to refresh the data, I get a popup window that shows the opening progress of the data file. How the heck do I suppress this popup? I have tried .DisplayAlerts=False, .ScreenUpdating=False, I even threw in a .EnableEvents=False...still get the popups...

  2. #2
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    Have you tried :
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-21-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    tried all the usual stuff on both my "control" workbook, and the workbooks it is opening via code...

    Application.DisplayAlerts = False
    Application.ScreenUpdating = False
    Application.EnableEvents = False

    thing is, it suppresses choice popups like "do you want to save"...stuff like that, but this is just a progress bar that displays the data file opening...and it still shows up no matter what..

  4. #4
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-21-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    Bingo!...that did the trick!...funny thing though...like i said in the original post, I have a "control" workbook, that opens other workbooks and refreshes them through code...it's the "other" workbooks that are actually being refreshed with the data, but to suppress the status bar for opening the data file, I had to put the .DisplayStatusBar = False in the "control" workbook...I would have thought it had to go in the refreshed workbook...

  6. #6
    Registered User
    Join Date
    04-21-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    Oops...ok...it doesn't work...I've piled everything I can thing of on this and it still shows the progress bar...here's the relevant code with the statements to turn everything off in both the control workbook AND the refreshed workbooks...

    Please Login or Register  to view this content.
    And it STILL shows the darn progress bar to open files on the .Refresh statement!!!! Next idea?

  7. #7
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    Try this and modify if required.
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-21-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    that just uses the with statement so you don't have to write "myBook" or "ActiveWorkbook" so many times...that isn't really going to affect the operation of the code, is it?

  9. #9
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    If you look at it the refresh all goes before the setting of the Displays back to true

  10. #10
    Registered User
    Join Date
    04-21-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    Okay...re-posting my code...and bear in mind, I've thrown everything but the kitchen sink at this, and it STILL shows the "Opening..." progress bar, when I open the workbook, when the refresh opens the data files, and when the workbook saves...what am I missing?


    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-21-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Excel 2007 VBA...suppress "opening" message when refreshing pivot data

    Any more help on this? Anyone? As you can see in my code above, I have thrown everything I can think of at this, and it's STILL popping the progress bars...It's driving me crazy because I know it should work...it just doesn't...

+ 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