Solved

Excel 2010 VBA, ActiveX DLL and Ribbon

Posted on 2011-03-14
6
1,183 Views
Last Modified: 2012-05-11
Exploring the possibilities. I'm creating some classes in Class Modules for automating some of my routine development work (eg. create a combobox whcih is filled with data from a database via ADO). These will become ActiveX DLL via VB6. Now, in the new Ribbon, would it be possible to have a Ribbon tab from where I can launch a UserForm (from where I can select options like a wizard) just by adding the ActiveX Add In? ie. without also having to add an .xlam as well?

Can an expert point me in the right direction to learn how to do a Ribbon in Excel 2010 which will appear in Excel when the ActiveX DLL is Added In? And firing off the wizard?

Also re.2010. I got the RibbonX book by Robert Martin et al. Is the Excel 2010 a major change from 2007 > or are the 2007 Ribbon tutorials/tools still valid? (got VS2010 though newbie).
Thanks!

0
Comment
Question by:hindersaliva
  • 3
  • 2
6 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 167 total points
ID: 35129713
Much of the 2007 ribbon stuff should be the same - Backstage is the major change for 2010 (and the xmlns value is different).
0
 
LVL 22

Assisted Solution

by:rspahitz
rspahitz earned 333 total points
ID: 35131031
One option for customizing in 2010 is to add a link to the Quick Access Toolbar (just above the menus, top left corner)
For this, you can right-click any item there (like the floppy disk/save) and pick "Customize the ribbon"
In the left panel, below "Customize Ribbon" is "Quick Access Toolbar"

Select that an in the middle panel, open the dropdown list at the top and select macros.

From the choices showing, pick the one you want and click the Add button to enable it.
Close this and the item will now be accessible from the toolbar.  no custom menus needed.

Of course, from there, you'll see that you can also add a custom tab and group to the ribbon and insert your pieces into the ribbon.

In your case, you'll probably need a macro that launches the form:

frmMyUserForm.Show

0
 

Author Comment

by:hindersaliva
ID: 35131332
Thanks rspahitz.

The way I need this to work is, I want the link to exist in the Excel 2010 Ribbon (and the macro to be accessible) ONLY when the user has the ActiveX DLL Add In installed. Is the QAT approach a possible path to that result?

Steps:
I have a blank workbook.
I install my ActiveX DLL Add In.
I now have a clickable button on a Ribbon tab.
I click the button and a UserForm/Wizard pops up.
I fill the boxes and click OK > (I know the way from there)
(Remember, its a blank workbook up to this point)

Thanks.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 22

Assisted Solution

by:rspahitz
rspahitz earned 333 total points
ID: 35131384
I haven't worked with add-ins in years, so I'm not sure how to link it to the Excel 2010 application's configuration to add the tab/group you want.  I'll check with a few other experts for that.
0
 

Author Comment

by:hindersaliva
ID: 35137439
Update.
Had a dig around the RibbonX book and also the RibbonCustomizer tool/evaluation. I can see I'm looking for  a 'quick fix' for what is really a huge subject!
RibbonX book (Robert Martin et al) seems to have it covered from the ground up. So shall invest some time on it.
Thanks for the advice given above.

0
 
LVL 22

Expert Comment

by:rspahitz
ID: 35139585
Sounds like a good resource.  Good luck with the project.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question