Microsoft Project Add-in: can filters, tables, views be part of the add-in?

Add-in Express™ Support Service
That's what is more important than anything else

Microsoft Project Add-in: can filters, tables, views be part of the add-in?
 
David Stumbles




Posts: 2
Joined: 2022-06-17
I'm in the process of building an add-in for Microsoft Project using VB.Net. This is based on extensive VBA code that I have previously written. With VBA, the code, modules, and forms were saved in the Global.mpt file, which would also hold any required filters, tables, or views. This meant users who accessed the Global file also had access to these. I have not been able to find any information on whether these can be included in an add-in. Is it possible to have Project filters, tables, or views saved within the add-in? If so, how is this done?
Posted 12 Jul, 2022 19:57:14 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Hello David,

.MPT is a Project template. I assume a project based on this template was loaded in some way when Project started. The VBA code in that template won't work with an add-in as the add-in isn't VBA-based. But the remaining things - they are okay: your add-in can access them: in code, check the tables in the document based on that template.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Jul, 2022 04:09:15 Top
David Stumbles




Posts: 2
Joined: 2022-06-17
Thanks Andrei. I can open the Global template or another template with the same info (minus the VBA code), but it then only applies to the first Project file created. I still can't work out how to make those filters, tables, views, etc available for all new Project files. The only way I can think of is to copy them to each new file created, which seems like an inefficient way to manage this.

It would be ideal to make it work as the usual Global template does, by having all of its features available for all new Project files.

I'm probably missing something in my thinking. Unfortunately, I have found very little detail around programming in VB.Net for Microsoft Project.

Thanks for your help though.

Regards,

David
Posted 14 Jul, 2022 22:22:21 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Hello David,

I assume your description relates to Project itself, not to using .NET with project. Basing on the description at https://docs.microsoft.com/en-us/office/troubleshoot/project/upgrade-project-global-template, I suppose your Global template file is located in a wrong folder: should it be in a correct folder I'd expect it is used for every project opened.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Jul, 2022 04:05:14 Top