Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2007

Tip: Looking for answers? Try searching our database.

Editing MS Project File from Excel VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
andrew.littlefield@gmail.com - 07 Dec 2007 23:48 GMT
I posted this in another forum, but because there seems to be no other
information on the topic i felt it would be beneficial to ask here as
well. (link to original post:  http://www.excelforum.com/showthread.php?t=626117)

What i'm attempting to do is edit a Microsoft Project file from an
Excel VB Macro. We have a program that populates most of the necessary
fields of Project file automatically, but other critical fields
(durations) will need to be entered manually. To expedite the process,
i'm attempting to create an Excel template for the responsible parties
to update and would like the macro to then update the Project file.

I realize there are easier methods other than macros to do this, but
as there are 30,000+ lines, many of which are repeated, a macro would
be the most efficient.

The only code i have been able to find that even links the two
different MS programs is this:

Set ProjApp = CreateObject("MSProject.Application")
     With ProjApp
           .Visible = True
     '     xxxxxx
          .Quit
    End With
Set ProjApp = Nothing

While it does somewhat link the two programs, i'm experiencing
problems right off the bat and am fairly certain that is not the best
way of doing what i'm needing.

Any advice, examples, or references would be much appreciated.

Thanks in advance,
KC Cheung - 08 Dec 2007 13:45 GMT
Why we cannot use simple cut and paste please?

Signature

Regards
PY & Associates

>I posted this in another forum, but because there seems to be no other
> information on the topic i felt it would be beneficial to ask here as
[quoted text clipped - 30 lines]
>
> Thanks in advance,
the dude - 08 Dec 2007 20:04 GMT
Cut and paste would be easiest, but incredibly time consuming.  As i
said, (ideally) the responsible parties will update a template
containing tasks relevant to them.  The macro will then locate those
tasks dispersed throughout the 30,000+ lines and update accordingly.
Because this could/probably will be done numerous times throughout the
duration of the project, it would be much more efficient to have a
macro take care of the searching and locating, then copying/pasting
automatically.

I've been pointed to references by others and will post them here
after i've had a chance to do some research, but if anybody out there
has any ideas please let me know.

Thanks again.

> Why we cannot use simple cut and paste please?
>
[quoted text clipped - 3 lines]
>
> news:530922d5-6953-4fa4-8f2b-5464624b4b5e@b1g2000pra.googlegroups.com...
KC Cheung - 09 Dec 2007 02:00 GMT
We are assuming you have Activities, Duration etc in Excel spreadsheet.
We always do this.
Copy the whole column of 30,000+ durations;
Switch to Project;
Click top cell in duration column;
Paste;

Signature

Regards
PY & Associates

> Cut and paste would be easiest, but incredibly time consuming.  As i
> said, (ideally) the responsible parties will update a template
[quoted text clipped - 18 lines]
>>
>> news:530922d5-6953-4fa4-8f2b-5464624b4b5e@b1g2000pra.googlegroups.com...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.