Eikon Excel Synchronization Manager COM library gives you more options and control over handling connectivity to Eikon platform, but if you're just looking for a simple command to initiate the sign-in you can use
Application.Run "PLLoginEventHandler"
See the tutorial on Eikon Excel Synchronization Manager COM library.
Hi Alex, I was expecting an off the shelf function thinking it's actually called when explicitly clicking on the Eikon sign in/out button/icon in the topbar menu
christophe
Thanks Alex - would you have the same for Sign out ?
I don't believe it's possible to sign out using VBA. But depending on the use case, perhaps there are other ways to achieve what you're looking for. E.g. you can easily unload Eikon Excel COM add-in:
Application.COMAddIns("PowerlinkCOMAddIn.COMAddIn").Connect = False
What's your use case? In other words, why do you need to sign out? What exactly are you looking to achieve with it?
Similarly to Application.Run "PLLoginEventHandler" that signs-in like the Sign In action using the top bar menu sign in TR button, I'd like to perform a sign out action with a VBA code.
I want to make sure that my application signs out after the refresh is done to avoid any involuntary data refresh
btw, Application.COMAddIns("PowerlinkCOMAddIn.COMAddIn").Connect = False remove the Eikon Add-In from the Excel options, and this is not want I want. I tried and I had to put it back using Application.COMAddIns("PowerlinkCOMAddIn.COMAddIn").Connect = True
The sign out action is not exposed through VBA. There are numerous alternatives you can use to preserve the data you retrieved. Each has its own advantages and disadvantages depending on the larger context of your use case.
Alex, it's really unfortunate there's no such VBA signout function - As there's a sign in function, I really was expecting the same for sign out. Some of the users I work with are not at all excel expert (actually basic users) and having such signout function that is automatically called based on some specific trigger would make the implementation more handy and robust.