+ Reply to Thread
Results 1 to 2 of 2

VBA code to Refresh Connection for Excel Add-in for Analysis Servi

  1. #1
    Ellis
    Guest

    VBA code to Refresh Connection for Excel Add-in for Analysis Servi

    Anybody know the vba code to Refresh Connection in cube analysis? or any
    other automation option?

    For some reason, when using Refresh Sheet returns #VALUE! but Refresh
    Connection works well.

    Thanks!



  2. #2
    Rob van Gelder
    Guest

    Re: VBA code to Refresh Connection for Excel Add-in for Analysis Servi

    Having never used Analysis Server, I can't say how it works...
    My understanding is that it's a standard QueryTable.

    Sub test()
    Dim qtb As QueryTable

    For Each qtb In ActiveSheet.QueryTables
    qtb.Refresh
    Next
    End Sub


    --
    Rob van Gelder - http://www.vangelder.co.nz/excel


    "Ellis" <[email protected]> wrote in message
    news:[email protected]...
    > Anybody know the vba code to Refresh Connection in cube analysis? or any
    > other automation option?
    >
    > For some reason, when using Refresh Sheet returns #VALUE! but Refresh
    > Connection works well.
    >
    > Thanks!
    >
    >




+ 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