Deployment of Project VBA code ( incl ThisProject )

B

BIG Chris

Hi,

I have a "system" that I wrote for MSP 2002 that consists of a set of
modules, forms and a toolbar. In the past, in order to get this deployed to
my users I have created a seperate mpp file that has an "Auto_Open" procedure
that then calls a set of commands such as :

OrganizerMoveItem pjToolbars, filename, "GLOBAL.MPT", "MMT"

OrganizerMoveItem pjModules, filename, "GLOBAL.MPT", "frmAssignProject"

This way of doing things was fine, because all I had created was forms and
modules that needed to be copied to the users GLOBAL.MPT file.

BUT now ( hence this question ) I also have code that I need to be installed
in the "Project_Activate" procedure i.e. code that will run whenever the
users opens up a new MS projecty file. This code "lives" in "ThisProject
(Global.MPT)" and I have no idea how to get this installed on my users
machines, because there doesn't seem to be an Organizer method to do this
kind of thing ( i.e. it's not a module, form, toolbar, view etc etc )

Does anyone have any idea how I get this code deployed ? Note I can NOT add
this code to every individual MS project file that a user may us, because I
have no control over their individual projects.

Cheers,

Chris.
 
L

Lars Hammarberg

"ThisProject" is a "class" module and I'd move the code into a new class
module in a compiled AddIn dll-file - which could then be placed on the
users' drives, loaded into Project and accessed from within all project
files, thus not compromising any individual projects.

Take a look at the Project SDK file found on MSDN if you're feeling
adventuresome.
 
J

Jan De Messemaeker

Hi Chris,

I have exactly the same setup with a customer and run into exactly the same
problem.
I'm told that the methods that can write into
VBE.VBprojects(1).vbcomponents(1).codemodule
(which is ThisProject module for the Global)
such as Insertline, Addfromstring... do not work (any more)
So I have to stick to what is possible using Auto_Open..

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top