+ Reply to Thread
Results 1 to 3 of 3

Remove data connection, keep PivotCache

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    EU
    MS-Off Ver
    Excel 2010
    Posts
    2

    Remove data connection, keep PivotCache

    With Excel 2010 a yellow warning bar is shown when opening a file with data connection. I don't want to show this warning to other users who will be opening the file, especially when they won't be able to update anything since the original data is on my computer. The logical way would be to remove or disable the connections before sending the file out. But when removing the data connections through Connection window all the pivot tables are converted to static tables, which is not acceptable. Is there any other solution to this? Maybe use a macro?
    PS: I know that these warnings can be turned off though Trust Center, but I am not interested in changing these settings for other users.
    Last edited by dgxl; 11-26-2012 at 06:14 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Remove data connection, keep PivotCache

    Close all the excel workbooks and keep the Pivot workbook only and Press Alt+F11 and Press Ctrl+R to get the Project Explorer window>>Double Click This workbook>>Copy and paste the below code

    Please Login or Register  to view this content.
    Save the file and open and check whether it is prompting for any update. Checked it with external formula's and hope so it will work with pivot also.

    Please let us know your feedback...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    EU
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Remove data connection, keep PivotCache

    Sixthsense, unfortunately Application.DisplayAlerts has no affect on the yellow warning bar.
    I guess that the easiest workaround would be to have data connection with a Table. Then have a Pivot Table based on this Table and then remove the Table with the data connection. The Pivot Table would still work but it won't be refreshable. Additionally PivotCache.EnableRefresh could be be set to false. This would also remove the "Reference not valid" warning if a user tries to refresh the Pivot Table.

+ 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