Logging into Smartview via VBA

Hi there,
Appreciate any help you can provide.  I have written/copied code to create a connection and then connect to one of our servers.  What I am trying to do is to get the code to log me into the server automatically with the username and password that I have embedded in the code.  I cannot get it to log me in, the login dialog for the server connection always pops up.  Below is the code I am using hope that someone can point out what I am doing wrong.  Thanks for the help!
Private Declare Function HypConnect Lib "HsAddin.dll" (ByVal vtSheetName As Variant, ByVal vtusername As Variant, ByVal vtpassword As Variant, ByVal vtFriendlyName As Variant) As Long
Private Declare Function HypCreateConnection Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtusername As Variant, ByVal vtpassword As Variant, ByVal vtProvider As Variant, ByVal vtProviderURL As Variant, ByVal vtServerName As Variant, ByVal vtApplicationName As Variant, ByVal vtDatabase As Variant, ByVal vtFriendlyName As Variant, ByVal vtDescription As Variant) As Long
Sub Conn()
Dim vtusername As Variant
Dim vtpassword As Variant
Dim x As Variant
Dim HYP_ENTERPRISE As Variant
HYP_ENTERPRISE = "Hyperion Enterprise"
vtusername = "admin"
vtpassword = "password"
x = HypCreateConnection(Empty, vtusername, vtpassword, HYP_ENTERPRISE, "http://planws.abc.com:80/aps/SmartView", "EssbaseCluster-2", "abcPLN", "PandL", "TEST", "Hyperion Enterprise")
MsgBox x
x = HypConnect(Empty, vtusername, vtpassword, "TEST")
MsgBox x
End Sub

We face similar issue, but if you close the smart view log in pop up without entering any username/password it still creates connection in the background. So login dialouge will pop-up but it will use embedded connection details. Just see if you cancel login dialouge do you still get connection?

Similar Messages

  • Cannot log into account via "Elements 10 "Inspiration Browser"

    I did a "live chat" and they sent me here.
    Cannot log into account via “Elements 10 Inspiration Browser”
    “When I click on “Help”      “Elements Inspiration Browser…”  and enter username and password and click on “sign in” the program goes to the sign in page and freezes for hours. I must use “Task Manager” to “end task” and close the frozen Elements 10.
    When I try to do an "update" I get the following Error Code:  U41M1C212
    Elements Organizer 10.0.0.0
    Core Version: 10.0 (20110831.m.17215)
    Operating System Name: 2000 [Windows 8]
    Operating System Version: 6.2
    System Architecture: Intel CPU Family:6 Model:5 Stepping:5 with MMX, SSE Integer, SSE FP
    Built-in Memory: 7.8GB
    Free Memory: 3.3GB
    Important Drivers / Plug-ins / Libraries:
    Microsoft DirectX Version: 9.0
    Apple QuickTime Version: 7.73
    Adobe Reader Version: 11.0
    Adobe Acrobat Version: Not installed
    CD and DVD drives:
    E: (hp DVD BUS: 1 ID: 1 Firmware: RW)

    The IB is dead and gone, along with photoshop.com. The tutorials are now over at
    http://tv.adobe.com/product/photoshop-elements/
    although some of them have been updated for the newer versions.

  • Yosemite agent - session crashes after logging into RDS via iPhone or iPad app

    I access RDS primarily through the Mac app, but will occasionally log into a session via iPad or Iphone.  Whenever this happens, trying to get back onto that session via Mac results in a distorted screen that is pulled diagonally, only fix is to sign
    out of the RDS session on Iphone or iPad, then log in via the remote desktop app on the Mac and sign in to a new session on RDS.  
    Are there any other fixes for this?

    Hi,
    Thank you for posting in Windows Server Forum.
    Did you try to use latest version of MRD? 
    Please try to use MRD v8.1.5 for IPhone and IPad and MRD v8.0.10 for MAC and check the result. If still facing issue you can collect log for further research.
    IOS:https://itunes.apple.com/in/app/microsoft-remote-desktop/id714464092?mt=8
    MAC: https://itunes.apple.com/in/app/microsoft-remote-desktop/id715768417?mt=12
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Hi i am a teacher and am looking to buy an iPad - we use SIMS (this isnt compatable with an IPad) but i can log into it via a virtual desktop.  What wold be the best iPad to buy?

    hi there
    im looking to buy an ipad- we use SIMS at school and i need to be able to log into it.  I can via a virtual desktop via the college wireless netork.  I also have work on the network.  What would be the best IPAD to buy?

    You have the choice of a full size iPad or the iPad Mini...both come as either WiFi only or WiFi+cellular data service.  With the cellular data model you can see if there is a SIM available that is appropriate.  Either model is capable of attaching to a wireless network to give you access.  Neither is capable of a wired connection, must be wireless.
    So, the question is which size is the best for your personal use, and do you want cellular data access - great thing to have.  Then the decision is which storage capacity do you want...keep in mind that the iPad is not upgradable after purchase so get the storage you really want to start out.

  • Cannot log into iCloud via system preferences on MAC

    I am trying to enter my icloud password on my mac and it seems to just be thinking.  If i enter the incorrect one it tells me that I've entered the wrong one.  Not sure what is going on.  I even went as far as changing my password, I then updated it on my iphone, it was accepted, I went to icloud on the web and was able to log in but once again when I try on the mac it just contines to think.  Suggestions??
    Thank you in advance!

    You might try the following, you may be able to skip the first few steps depending where you are up to with your troubleshooting.
    1. Sign out of your account
    (If you are unable to do this because System Preferences has frozen, Force Quit System Preferences and try again)
    2. When prompted, opt to delete, contacts, calendars etc from your Mac.
    (You are only deleting this data from your Mac, not from iCloud, the data will be reinstated when you log back in. If you need to check that the data is in iCloud before deleting it go to iCloud.com and check each section for data)
    3. Having logged out, check that the iCloud accounts along with their data have disappeared from the Mail, Address Book and iCal Applications.
    (If necessary, delete the iCloud accounts from each of these application separately from each Applications Preferences)
    4. At this point it may be worth trying to log into iCloud from the System Preferences iCloud settings again, if this works, all well and good, if it doesn't continue to step 5.
    5. Open your User Library folder in the Finder. (When in the Finder, go to the Go menu, hold down the option key (alt) and choose Library when it appears in the Go menu)
    6. Navigate to Library > Application Support > iCloud and drag the iCloud folder to your desktop. (This action only copies the folder and will provide you with a back up)
    7. Select the iCloud folder again in Library > Application Support and drag it to the trash, enter your administrators password when prompted.
    8. Restart your computer.
    9. You should now be able to enter your ID and Password in system Preferences > iCloud and log into your account. Check the services you wish to use and once you are satisfied it's working as it should, trash the iCloud folder you copied to your desktop earlier.

  • Logging into portal via http arguments

    hi,
    I want that somehow i could log into portal server using html arguments,
    i used to do this on oracle server
    iexplore ww.oraclessotemplate?username=uname&&password=pass&&token=iuashdiu
    now i want to achieve the same thing in sun portal server
    is there any such applett that accept such arguments?
    regards kimi

    This might help.
    http://blogs.sun.com/roller/page/nav?entry=tip_one_click_login_to
    But I hope you realize this is insecure and should not be used in production.

  • Logging into SKYPE via FB

    So.. I got locked of SKPE for some VERY weird reason not recognising my password VERY ANNOYING.. so I've now logged in with FB on my lap top but can't do that on my phone or via my internet TVHELP please

    Hi and welcome to the Skype Community,
    Best is to fix your original Skype account access.
    Can you still sign in with that account on the Skype web account page at www.skype.com/go/myaccount ? If you cannot then please follow the instructions here to recover your password: https://support.skype.com/en/faq/FA109/i-ve-forgotten-my-username-or-password
    If you can sign in on the web account page, but not from within the app: Can you share which Skype app version you are using?

  • Logging into SRm via the web

    Hello Friends,
    We are setting up a new SRM 6.0 system. I have activated all the services and done the basic config. I have a user ID with sap_all and SAP_new profile and requisitioner role. When I login through the web and click on the shop, instead of bringing the BBPSC02 it opens another main menu window inside the previous window . So now I am presented with another shop potion and when I click on it it doesn't do anything. Has somebody else seen this...Any help will be appreciated.
    Thanks,
    Donna

    Hi,
    See the solution in the foll threads:
    Re: Web Page Display
    SRM open the same page in main frame
    BBPSTART reopening again in internal frame
    BR,
    Disha.
    Do reward points for useful answers.

  • How can I reset my iPad YouTube password? I can't sign into youtube on iPad. It says Username or password is wrong although both are correct when I log into YouTube account via Google.

    how can I reset my iPad YouTube password? I can't sign into youtube on iPad. It says Username or password is wrong although both are correct when I log into YouTube account via Google. I also tried my husbands youtube login and password and the same outcome. Now I cant log into YouTube via the iPad account. I can log into Youtube via Google however my subscriptions and favorites are all gone. Can I reset the YouTube account located on the iPad? I cant seem to reset the password or delete the app and re-add. I dont want to reset the iPad since I have alot of videos and pictures on it.

    Do you have Google 2 stage authentication turned on?
    If so, you wont't be able to use your normal google password, but will have to instead generate an "application specific" password for the iPad YouTube app in the google security settings section.

  • Having problem with svchost.exe/ntdll.dll errors causing GPSVC (Group Policy Client) to crash preventing users from logging into the server.

    Recently (within the past 2 weeks) I have noticed a few of our servers will have problems with the svchost.exe application causing the GPSVC (Group Policy Client) to crash. The only fix at that point is to reboot the server since the GPSVC service is tied
    to svchost.exe and therefore is protected from being manually restarted.
    I noticed the following errors when this occurs:
    Log Name:      Application
    Source:        Application Error
    Date:          7/23/2013 4:35:26 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Server1.xxx.xxx.net
    Description:
    Faulting application name: svchost.exe, version: 6.1.7600.16385, time stamp: 0x4a5bc3c1
    Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec4aa8e
    Exception code: 0xc0000024
    Fault offset: 0x00000000000cd7d8
    Faulting process id: 0x46c
    Faulting application start time: 0x01ce877f9476ac07
    Faulting application path: C:\Windows\system32\svchost.exe
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: d252d26d-f372-11e2-8ad4-005056ac00e8
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-07-23T08:35:26.000000000Z" />
        <EventRecordID>158950</EventRecordID>
        <Channel>Application</Channel>
        <Computer>AAW19XM2.agency.nwie.net</Computer>
        <Security />
      </System>
      <EventData>
        <Data>svchost.exe</Data>
        <Data>6.1.7600.16385</Data>
        <Data>4a5bc3c1</Data>
        <Data>ntdll.dll</Data>
        <Data>6.1.7601.17725</Data>
        <Data>4ec4aa8e</Data>
        <Data>c0000024</Data>
        <Data>00000000000cd7d8</Data>
        <Data>46c</Data>
        <Data>01ce877f9476ac07</Data>
        <Data>C:\Windows\system32\svchost.exe</Data>
        <Data>C:\Windows\SYSTEM32\ntdll.dll</Data>
        <Data>d252d26d-f372-11e2-8ad4-005056ac00e8</Data>
      </EventData>
    </Event>
    All of our servers are running Server 2008 R2 Enterprise where we use Citrix to deliver desktop sessions to our users, but some are virtual and some are physical. This seemingly impacts our virtual machines more, and our VMs are hosted through VMWare, however,
    about 5 months ago a similar error fired on a non-virtual machine:
    Log Name:      Application
    Source:        Application Error
    Date:          2/27/2013 6:57:58 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      AAW29033
    Description:
    Faulting application name: svchost.exe_gpsvc, version: 6.1.7600.16385, time stamp: 0x4a5bc3c1
    Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec4aa8e
    Exception code: 0xc0000024
    Fault offset: 0x00000000000cd7d8
    Faulting process id: 0x6c0
    Faulting application start time: 0x01ce14e1af313fd9
    Faulting application path: C:\Windows\system32\svchost.exe
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: ed3d01c4-80d4-11e2-9128-b499baa9e5e8
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-02-27T11:57:58.000000000Z" />
        <EventRecordID>286291</EventRecordID>
        <Channel>Application</Channel>
        <Computer>AAW29033</Computer>
        <Security />
      </System>
      <EventData>
        <Data>svchost.exe_gpsvc</Data>
        <Data>6.1.7600.16385</Data>
        <Data>4a5bc3c1</Data>
        <Data>ntdll.dll</Data>
        <Data>6.1.7601.17725</Data>
        <Data>4ec4aa8e</Data>
        <Data>c0000024</Data>
        <Data>00000000000cd7d8</Data>
        <Data>6c0</Data>
        <Data>01ce14e1af313fd9</Data>
        <Data>C:\Windows\system32\svchost.exe</Data>
        <Data>C:\Windows\SYSTEM32\ntdll.dll</Data>
        <Data>ed3d01c4-80d4-11e2-9128-b499baa9e5e8</Data>
      </EventData>
    </Event>
    I've searched and cannot seem to find any information as to what may be causing this, or even really where to start. Would someone be able to help me identify what might be causing this event, specific with the Exception code: 0xc0000024, which causes
    the Group Policy Client service to stop?

    You still out there looking at things? If so I have an update. The issue hasn't stopped, even though it did seemingly die down for awhile, however, it is now back with a vengeance.
    I am able to force it to happen by killing the svchost process that is hosting GPSVC. If I run gpupdate /force, then logout/login it does get GPSVC running again. Furthermore, if I simply start svchost again via the Task Manager GPSVC starts running again.
    When I access the server remotely with KVM it acts just like it does as if I'm logging into it via Citrix/RDP which for Admin IDs gives an error saying "Failed to connect to a windows service. Windows could not connect to the Group Policy Client service...",
    however, normal user accounts just get a message when logging into the server "The Group Policy Client Service Failed the Logon. Access is denied."
    I haven't opened a case with Microsoft yet, but we about ready to because of the increase in these errors.
    If you have any further suggestions that would be great, otherwise I'll provide an update once I get word back from Microsoft.
    **EDIT -- apparently I mistook the the server's SCM's actions as my own. I was able to successfully crash the GPSVC service by killing the hosting svchost process, however, after I crashed it and let it sit crashed for awhile when I attempted
    to restart either by starting a svchost task, or running gpupdate /force it failed. Either that, or there is a timing issue where if we don't restart the svchost process, or run gpupdate /force quickly enough it won't be able to recover without a reboot.

  • I can't log into facebook

    can someone help me?  I tried to log into facebook using my macbook and the address just spools or is stuck.   I can pull up other sites when I type them in with no problems.  I can also log into facebook via my desktop, phone but not the macbook.  I appreciate the help.
    thank you

    Try logging in with your @ Facebook email address. You can find it in Facebook settings from your browser.

  • Hi There for the last few days I can log into Icloud on my pc but I can't action anything. I can see the emails but cannot view them. I cannot compose a new email.. I don't know if this is icloud or my pc? Its working fine when I access on my iphone..

    Hi There
    for the last few days I can log into icloud via icloud.com on my pc but I can't action anything.
    I can see the emails but cannot view them. I cannot compose a new email.. I don't know if this is icloud or my pc?
    Its working fine when I access on my iphone.
    many thanks
    Cherry

    Just realised its fine through internet explorer but its Mozilla.. so assuming an issue with my browser?

  • Why can't I log into my email on my PC via iCloud anymore?

    Why can't I log into my email on my PC via iCloud anymore? I'm getting an incorrect password message and server unavailable.

    I am having the same issue... I just changed my password incase I was hacked....
    as Hackers have been using Amazon and iCloud info together to hack and wipe
    Mac's .... You might want to send for new password.... just in case.....

  • I can't log into facebook, twitter and youtube via apps.

    I have been having this problem almost for a month, I tried many things to fix it. I removed the apps and installed them again, I restored my iPhone, I checked my internet access etc etc. Everything is fine, I just can't go on facebook, twitter, and youtube via apps. Safari doesn't work for twitter and youtube -- I can go on facebook mobile, but not facebook.com. I read many solutions but none of them worked for me. If you know something about it, please let me know.

    If cant log into Facebook, you will just have to go on to safari and do Facebook on there but also you could try deleting again, restarting your iPad and get the app again.
    I really do hope this works :)
    good luck thanks
    Lydia

  • Changed my 192.168.1.1 to 192.178.1.1 and i can`t log into setup in WRT54G v5 via navigato

    changed my 192.168.1.1 to 192.178.1.1 and i can`t log into setup in WRT54G v5 via browser
    How can i reset the router to initial manufacturer`s state?

    At back panel of router u have a reset button ........... keep it pressed for 30 sec...... unplug & plug power to router ........... it will set to default 192.168.1.1....
    Tell me if it works or not.........

Maybe you are looking for

  • Validation for Cash payments

    hi experts, in our project the client needs a validation for FBCJ transaction for outgoing payments it will not allow more than 20,000/- except cash deposit in to bank(for this transaction it has to allow more than that amount). for this how to valid

  • Can't import XSD (without Namespace) into WSDL

    Hi We are developing a BPEL process that takes a XML message - that adheres to the new XSD (has a namespace) - and steps the message (translates) down in to the old XML message - that adheres to the current production XSD (does not have a namespace).

  • JavaHelp package

    Hello all, I am trying to add the JavaHelp System to my Application for the first time and I am little bit confused. I downloaded latest release of JavaHelp and I added sources (src.jar) to my Classpath, but classes like com.sun.java.help.impl.Parser

  • Need help for JFileChooser

    Hi, I need help on this one. I have a filechooser class which extended from JFileChooser class. Every thing works fine except this: I want to by hiting the "Enter" key to save the files. The "Enter" key works only when the focus is in the file name t

  • Help! I have no Save As Disk Image

    Ok, I just got iLife 6 and I'm having HUGE problems. I have a plextor external drive and just downloaded toast 7. I tried to go to save as<disk image and it's not there. I don't know what to do, I put to save to desktop and then drag it to toast, but