pass in ByVal pj as Project into a form

D

DC

I am doing a Fileopen event that call a form. Within that form I want to edit
ProjectTaskSummary Custom Fields.

Well in my VBA code at the level before calling Form.Show I have the (ByVal
pj As Project) Is there a way to somehow pass pj into my Form so that I can
edit the ProjectTaskSummary custome fields of the newly created Project file.

any input is greatly appreciated...

Thanks
 
R

Rod Gill

Provided you are only opening one project at a time (not sure two at once
can be opened, but two one after another can be) then ActiveProject is all
you need. Save ActiveProject to a project variable first and you will have
the correct project even if the activeproject changes.

dim Prj as Project
set prj=activeproject

--

Rod Gill
Project MVP

NEW!! Project VBA Book, for details visit: http://www.projectvbabook.com
 

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