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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top