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