[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Excel 2010 VBA, ActiveX DLL and Ribbon

Posted on 2011-03-14
6
Medium Priority
?
1,251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 668 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 1332 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 22

Assisted Solution

by:rspahitz
rspahitz earned 1332 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

656 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