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? |
|
Andrei Smolin
Add-in Express team
Posts: 19138
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 |
|
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 |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
|