Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Macro with Essbase Add-in

You can do one thing, created a module in your spreadsheet and write a
subroutine as follows,

-----------------------------------------------
Sub auto_open()
Call GetUpdatedData
End Sub

Sub GetUpdatedData()
Dim Server As String
Dim Application As String
Dim Database As String
Dim ID As String
Dim PW As String
Dim x As Long, y As Long

Server = your server string
Application = the name of the application you are connecting
Database = the name of the database under the application
ID = your user ID
PW = your Password

x = EssVConnect("[" & ThisWorkbook.Name & "]" & ActiveSheet.Name,
ID, PW, Server, Application, Database)
If x = 0 Then
y = EssVRetrieve(Null, Null, Null)
If y = 0 Then
MsgBox "Retrieve Successful"
Else
MsgBox "Retrieve Failed"
End Sub
End If
Else
MsgBox "Unable to Connect to the Server"
End If

End Sub
-----------------------------------------------------------

create another module and put all the essbase declarations in that
module ( for that you have to copy all containts of the file
"your_essbase_directory\bin\essxlvba.txt" in that module ). Set the
propers values for variables declared in 'GetUpdatedData' subroutine.
The macro "auto_open" will be called everythime you will open your
spreadsheet. so everytime when you open the spreadsheet, you will get
updated data. And put a line "Call GetUpdatedData" at the end of the
macro which you have created to update members. so data will be updated
again when you change your member name using the macro you have
created.

Hope this helps,

King

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ESSBASE wout Setting up and Configuration of Excel 2 October 19th 07 11:03 AM
How do I program a macro to do an essbase retrieve? Duncan Haines Excel Programming 2 December 29th 05 05:28 PM
Hyperion Essbase add-in macro Ctech[_57_] Excel Programming 2 December 29th 05 05:14 PM
Macro for "Retrieve" in Essbase Menu Jelso Excel Programming 1 September 11th 03 09:12 AM
Macro to connect excel sheets automatically to Hyperion ESSBASE 6.5 mcm Excel Programming 0 August 29th 03 10:44 AM


All times are GMT +1. The time now is 08:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"