Automatic smart view hyperion refresh with VBA

Status
Not open for further replies.

Yuriy

New Member
Joined
Jul 18, 2012
Messages
3
maybe someone could help me to understand, what I'm doing wrong, as I'm stuck.. In general, I have a process, where I have an .vbs file, that triggers macro file, which makes connection to Hyperion and refreshes sheets.
For some reason, when I'm triggering that macro, it always asks me to enter credentials, even if I've declared them (which of course crushes automation).
Currently I have such code - two declarations:


Declare Function HypMenuVRefreshAll Lib "HsAddin.dll" () As Long
Declare Function HypConnect Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtUserName As Variant, ByVal vtPassword As Variant, ByVal vtFriendlyName As Variant) As Long


and then refresh happens with such part:


Public Sub Connect_OBIEE()


Dim wsSheet As Worksheet




For Each wsSheet In ActiveWorkbook.Worksheets
x = HypConnect(wsSheet.Name, "<login>", "
", "<name of="" connection="">")
Next wsSheet


lngReturn = HypMenuVRefreshAll()


End Sub


How can I avoid the connection pop-up window, where it asks again my credentials, which if I will enter, will of course be working fine and then everything goes as I need..


So the general point is here, that my vbs file, that triggers macro, should enter everything automatically, refresh files, save and close, without these popu-ups.


Any suggestions?</name></password></login>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Duplicate https://www.mrexcel.com/forum/excel...rt-view-hyperion-refresh-vba.html#post5223826

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

Note that sometimes posts from new users require Moderator approval before you can see them on the public forums. When this happens, you should see a message to that effect when you try to post it.
Please be patient and do not attempt to post the question again.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top