+ Reply to Thread
Results 1 to 2 of 2

Use VBA to Disable PQ Preview in Background

  1. #1
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Use VBA to Disable PQ Preview in Background

    Hi

    I want to ensure that users of my Excel Workbook have "Allow data previews to download in the background"disabled.

    I intend to l run VBA as part of the On open macro.

    I also want the Privacy setting for the workbook to be set to Ignore Privacy settings.

    How would one go about this with VBA.

    Thank You

    Allister
    Last edited by AllisterB; 07-16-2021 at 12:32 AM.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Use VBA to Disable PQ Preview in Background

    Hi, yes, the "file" Privacy setting is set per client so, modifying in the Open event makes sense if enforcing standards across all clients using the file
    (obviously, you need to be confident this isn't creating any security issues, given you're ignoring the privacy setting wherever the file is opened)

    Please Login or Register  to view this content.
    w.r.t the Preview, I've not tested to see if it behaves the same way as the above but, you could embed further code as outlined in the below link so as to disable the preview:

    https://www.excelcampus.com/vba/enab...y-connections/

    there are other more educated PQ folk here who may correct the above and/or offer alternatives, of course

+ 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. Print preview excel and save PDF (WITH Background)
    By ToneMGMT in forum Excel General
    Replies: 1
    Last Post: 04-04-2018, 01:21 PM
  2. Replies: 6
    Last Post: 12-16-2016, 07:24 AM
  3. [SOLVED] Diable field list in pivot table
    By ZuneidDassu in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-12-2014, 08:44 AM
  4. [SOLVED] Hiding the page number in page break preview background.
    By I need coffee, wake me up! in forum Excel General
    Replies: 3
    Last Post: 08-01-2012, 03:00 PM
  5. enable diable macros
    By Bret in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2006, 03:25 PM
  6. [SOLVED] Diable Ctrl+Break
    By Steven in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2006, 02:15 PM
  7. [SOLVED] Diable Chart Information Alert
    By Greg G in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-05-2005, 10:06 AM

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