+ Reply to Thread
Results 1 to 4 of 4

Refresh All code not working

  1. #1
    Registered User
    Join Date
    02-18-2020
    Location
    Netherlands
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    20

    Refresh All code not working

    Dear All,

    I have an external connection which fetches data from an external OLEDB connection. After the data is fetched I need to refresh few other pivots to reflect the fetched data.

    Now I have the code

    Sub Workbook_RefreshAll()
    ActiveWorkbook.RefreshAll
    End Sub

    But with this it updates the connections but NOT the pivot tables. I can not uncheck the option of "Enable background refresh". It is greyed out. Could you please help? Need to fix this with a better solution than refreshing manually all pivots or running the Refresh All code twice.

    Regards
    Kaushik

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Refresh All code not working

    have you read the "remarks" section here?

    https://docs.microsoft.com/en-us/off...ook.refreshall

    additional:

    https://docs.microsoft.com/en-us/off...ackgroundquery

    and it seems as though other people have figured it out:

    https://www.google.com/search?q=pivo...sh+greyed+out&

  3. #3
    Registered User
    Join Date
    02-18-2020
    Location
    Netherlands
    MS-Off Ver
    Office 365 Pro Plus
    Posts
    20

    Re: Refresh All code not working

    Hi Adam !

    I tried all the research before posting here. Its an OLAP connection. I cant modify in the connection properties. I dont think a hard coding will also work.

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Refresh All code not working

    OLAP and OLE are 2 different things, aren't they? OLE is an MS concept. it WAS heavily used in ms access files for a long time. but I don't think much anymore. this is all I know:

    https://www.google.com/search?q=exce...esh+greyed+out

    because I don't do that type of work. sorry. I hope someone else has an idea. =(

    https://en.wikipedia.org/wiki/Online...cal_processing

    https://en.wikipedia.org/wiki/OLE_DB

+ 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. Refresh all button is not working
    By lirans in forum Excel General
    Replies: 3
    Last Post: 08-04-2020, 02:25 PM
  2. code to refresh power query not working ..
    By Hassan1977 in forum Excel General
    Replies: 0
    Last Post: 08-31-2016, 12:31 PM
  3. Macro to refresh only sometimes working
    By kellyfirth in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2016, 11:05 AM
  4. Data Refresh All not working
    By veggiebrain in forum Excel General
    Replies: 0
    Last Post: 05-11-2016, 11:25 AM
  5. Refresh All Not Working
    By LampshadeTricky in forum Excel General
    Replies: 2
    Last Post: 01-22-2015, 12:05 PM
  6. [SOLVED] Wait for update (refresh not working)
    By jik_ff in forum Access Tables & Databases
    Replies: 1
    Last Post: 07-18-2014, 10:33 AM
  7. [SOLVED] External Data Refresh not working
    By Mike B in VT in forum Excel General
    Replies: 0
    Last Post: 02-10-2006, 02:30 PM

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