Sign in to a 3rd party excel add-in from vba - excel

I have a 3rd party ribbon (SNL Financial) add-in installed in Excel (2010 version) and I would like to have some vba code to automatically "sign-in" to the 3rd party ribbon. I've tried simply "recording" a macro that clicks on the ribbon and then clicks on the "sign-in" button, but no code shows up in the VBA macro recorder. Any ideas?

There is no universal "sign on macro" or method to login to all Excel Add-ins. Your best bet is to leverage something the developer has already built. Assuming you've already searched the web unsuccessfully, you can search your VBA Objects Browser which would be the most likely place to find any VBA options that a developer will allow you to use.
To do this, from the VBA editor screen click:
Tools / Reference. Make sure whatever add-in you have is checked in this list. It might not be the exact name so you may need to do some research to find it. Click okay to return to the VBA editor.
Click on VIEW / Object Browser. Hopefully you will see in the drop down menu that starts with <ALL LIBRARIES> the name of your add-in.
In the object browser, with you add-in selected, you should have access to view all API/MACRO tools the add-in has already built. Some of them may be intended for your use, and some may not. You might get lucky and find one you can leverage or take the code and research more on google for a solution.
Bottomline, there is no direct answer to your problem, but the above instructions would be the best place to start looking for your custom solution. Good luck.
Extra Bonus just for your particular SNL issue
For technical support contact SNL Support, visit this page:
http://sc.snl.com/SNLDSWebService2/Download.aspx

Related

C# VSTO Add-in Excel: What is the name of this Excel Super-Tab Control and how to make it? (Contextual Tab or Tool Tab)

In Excel (On Windows), there is a kind of a Super-Tab appearing on top of certain Tabs:
«Drawing Tools» Super-Tab:
When you click on a Graphic object then, this one appears:
«Table Tools» Super-Tab:
When you click inside of a Table object then this kind of a Super-Tab appears:
So my Questions are:
What is the technical name of that Super-Tab?
---> Special thanks to #TimWilliam. He was the one who gave its name: It is a Contextual Tab Set
And how to program something like that in VSTO Add-in please? (Anything related to it)
Your responses are much appreciated!
I'm answering to my Question so I do not lose all the important answers and research I got till now:
1. The name of that kind of Super-Tab:
The credit goes to #TimWilliams. The name of that Special tab is Contextual Tab or also called Tool Tab.
Here it is an official Information from Microsoft entitled: Ribbons
2. How to program the Contextual Tab?
I am still looking for How to program this one. At least Microsoft already explains about it here >>> 2.2.41 tabSet (Contextual Tab Set)
I found 2 new interesting discussions and information over here Adding custom contextual tabs to Ribbon UI and over here Ribbon: Contextual tab on application page. But they are all for ASP.NET.
Here as well is the List of Tool Tab available on Excel: Tool Tab Available on Excel
But once I found a working solution, I will share here as well for the advancement of our work.
Keep it up dear Programmers and stay blessed!
#TsiriniainaRakotonirina

Navigate to Sharepoint Site and Export Data

I know a little about Excel VBA but this is a little over my head (may not even be possible).
Is there a way to write code to;
Navigate to a sharepoint web addresss
In the 'Library' menu at the top it is selected
'Export Data' is clicked
Basically mimicking how an actual person would interact to achieve this?
I've looked everywhere but can't find anything which is making me think it is not possible, but have seen things 'not thought possible' achieved through this site so thought I'd give it a shot.
Can anyone help me with this please?
If you want a macro in Excel that works with a webpage like a person would, you can use IE automation. There you can tell IE to go to a specified URL, press explicit buttons, enter some text, wait for the page to load, etc. You'll find plenty guides for "excel vba ie automation".

How to detect what Ribbon is currently active in a Microsoft Office application?

I have looked at ActiveControlList but unfortunately it wasn't a reliable way to tell the active ribbon.
Specifically, I am looking for a reliable way to tell if Equation Tools ribbon is active in OneNote.
Do you have any suggestions ?
The ribbon is not a normal control and can be hard to work with from plain VBA or ahks built-in COM but you can use Microsoft's Active Accessibility API
You Can use the Acc lib so you don't need to know all the dll calls
But you still need to know what parts you need, and also what to look for to really use it. You can use jethrows AccViewer it will tell you the elements Role, State, ChildCount and more, so when you have found the item you're after, you can use the Tree or path that the accViewer gives.
Word ribbon path Example: 4.3.4.1.4.1.4.1.4.1.4.13.1.1
OneNote: 4.3.4.1.4.1.4.1.4.1.4.10.1.1
Here is an example using Acc_get() to show the current ribbon Name in OneNote PP 2010 when you press F6
f6::
name := Acc_Get("Name", "4.3.4.1.4.1.4.1.4.1.4.10.1.1", 0, "Ahk_class Framework::CFrame")
tooltip % name
return
Note: that this path is for when the ribbon is pinned i.e always visible
Forum topic with images
As far as I know there are no specific commands for Ribbon GUIs.
Use ImageSearch to detect changes in Ribbon GUI. You can search with ImageSearch image of activated Equation Tools control and if it finds it, it will set ErrorLevel to 1.
Also, always use AutoHotkey and its documenatation from http://ahkscript.org/ (current uptodate version, new official website)! AutoHotkey and its documentation from autohotkey.com is outdated and you may have some problems using them!

Adding navigational buttons to the Outlook CRM 2011 ribbon

I am currently using the Visual Ribbon Editor for CRM 2011 and i am trying to add a button to the Outlook client ribbon (not the web client) that loads the Accounts section of CRM (not in a modal, but the how it would normally load accounts in the main pane) The tabbed section in Outlook is shown in the image below.
I do not have to use the editor, and could use a solution, but i am unsure what sort of command i would need to get it to update the main pane and with either the visual tool or the by hand solution.
Update the HomePageGrid ribbon XML.
Gareth Tucker has written a great tutorial to add a button to the Form ribbon (just modify where it says Mscrm.Form to Mscrm.HomePageGrid):
http://garethtuckercrm.com/2011/01/18/how-to-view-ribbon-definitions-in-crm-2011-3/
Not sure if it's on topic so feel free to trash it. I won't be sad.
There's a fantastic tool called Ribbon Workbech. They even got a video showing how to do stuff, which is perfect for a complicated software in combination with lazy... hrmp... busy people.
There's even more info over here. Have a look.

Office 2007 Ribbon Programming How-to

I'm interested on how to get the old menus back for Office 2007. I know you can buy add-ins that do this, but I'm more interested on how these are done? I want to implement this at home and just need to be pointed in the correct direction!
Thanks!
These programs don't actually restore the old menu system, they modify the current Ribbon and then write the code to mock the old design.
This is where you need to start in order to modify the Ribbon.
http://msdn.microsoft.com/en-us/library/aa942866%28VS.80%29.aspx
I doubt the Ribbon is going to go away, so you probably will be better off taking the time to get used to it. I have, and now I much prefer this style menu system. In fact, I have been looking at code to implement this style in applications that I build.

Resources