PDA

View Full Version : VBA AddIns for 2 different Office Versions



daevwe
04-20-2016, 09:24 AM
Ich have written 2 VBA AddIns:
1 VBA AddIn for PowerPoint 2010.
1 VBA AddIn for PowerPoint 2016.
Both Office Versions are installed on same PC. Both AddIns are copied and registered on this PC in different PowerPoint Folders.
Start PowerPoint 2010: everything is fine. The VBA AddIn for PowerPoint 2010 will be loaded.
Start PowerPoint 2016: PowerPoint will load both AddIns. Unfortunately also the AddIn which is only for PowerPoint 2010.
I found registry key with name „AddInLoadTimes“, which contains all my AddIns (2010 and 2016).
Is there any idea or solution for my Problem?

John Wilson
04-21-2016, 07:19 AM
Do the AddIns have ribbon XML code. Maybe you could have a getVisible attribute which would return False in version 16? (Not tested just thinking aloud) Or maybe the Auto_Load code in v.16 could unload the v.14 AddIn.

daevwe
04-26-2016, 02:06 AM
Do the AddIns have ribbon XML code. Maybe you could have a getVisible attribute which would return False in version 16? (Not tested just thinking aloud) Or maybe the Auto_Load code in v.16 could unload the v.14 AddIn.

Yes my AddIns contains ribbon XML. It sounds like a good idea to use Auto_Load function to unload AddIn. Unfortunately AddIn throws exception before we Comes to Auto_Load Function because AddIn is not compatible in PowerPoint 2016.

Do you have any other idea?