+ Reply to Thread
Results 1 to 2 of 2

Cube formulas either don't refresh complete or excel hangs when called from VBA

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    timbuktu, Mali
    MS-Off Ver
    Excel 2010
    Posts
    2

    Cube formulas either don't refresh complete or excel hangs when called from VBA

    I first set up a report in an Excel sheet. This report calls an ID from another sheet and should then refresh the links to a SSAS cube (these are in cubeformulas). Due to the cube architecture and report design, the refreshing takes anywhere from 10 to 100 sec.

    When I call RefreshAll from a macro, the macro continues before all data is synchronized with the cube. Making the report look way more similar to one another than they should.

    Browsing the fora and the web, my eye fell on the Application.CalculateUntilAsyncQueriesDone object. I tried to implement it, but I think the sheet is sending batches to the cube such that when the first batch is done the flag goes up and the macro continues.

    Somebody can help me out with this?

    code is below. I really hope it's something easy to solve (I'm quite new to VBA and cubes)

    With kind regards, LM



    Please Login or Register  to view this content.
    Last edited by pike; 01-21-2011 at 04:39 AM. Reason: add code tags for newbie PM warning

  2. #2
    Registered User
    Join Date
    01-20-2011
    Location
    timbuktu, Mali
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Cube formulas either don't refresh complete or excel hangs when called from VBA

    this snippet seemed to work for Mark from NJ (http://social.msdn.microsoft.com/For...2-a8f60d972fc6) (although it is in C# and I can't translate it into VBA). Can somebody help me with that?

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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