Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting my add-ins to run in Excel 2007 1

Status
Not open for further replies.

RobBroekhuis

Technical User
Oct 15, 2001
1,971
US
Well, my company decided to upgrade to Office 2007. Which means that all of my VBA add-ins, which defined custom menus and added items to standard menus, are just about completely non-functional. Can anyone point me to a good online resource to help me sort out a solution? A quick web search didn't turn up much of value...
Thanks!

Rob
[flowerface]
 
Can anyone point me to a good online resource to help me sort out a solution?"

What do you mean by "solution"? Some sort of easy automated thingie that will parse, check, and fix your existing code to work for 2007?

This is not going to happen.

For one thing, if any of your code uses Application.FileSearch you will have to remove any, and all, references to that. FileSearch is totally removed from 2007 and is no longer in the Object Model. It is gone, gone, gone.

I do not think there is a magic bullet anywhere. You are likely going to have to carefully test (and possibly change) all your code in 2007.

faq219-2884

Gerry
My paintings and sculpture
 
Nope, not looking for something that will do everything for me. A site/page addressing VBA issues arising from the transition to Office2007, with some best practices, would be helpful :).

Rob
[flowerface]
 
>some best practices,

The best practice is not to upgrade if you have apps that rely on custom menus/command bars ...

As you have discovered, any code that uses commandbars is completely stuffed thanks to Microsoft's decision to move to a new interface metaphor - the ribbon

Here's an extract from a book that shows how you can get VBA to work with the ribbon and how to customize it ( Note in the very first paragraph it states "a way for it to be customized by developers and (to a certain extent) end users" which helps show you that in Office 2007 one of the Office 2007's team was to take customisation and coding away from end users, and give it to developers instead.
 
Thanks strongm. That will be helpful for sure. I already feared that customization was partly taken away from me. I'll try to salvage what I can...


Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top