Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export to MS Project

Hi,
I am trying to create VB code in excel that will

1. open a specific ms project file
2. select a range of excel data
3. update the ms project file
4. save and close the ms project file
5. return to excel

Thank you for any help you can provide

Cathy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Export to MS Project

Cathy

You'll have to be more specific about numbers 2 and 3. Here's how you do
numbers 1, 4, and 5.

Sub DoProject()

Dim prApp As MSProject.Application
Dim prProj As MSProject.Project

Set prApp = New MSProject.Application
prApp.FileOpen "\\Pm1\c\WINDOWS\Desktop\Job Schedules\MtCalvary.mpp"
Set prProj = prApp.ActiveProject

'Do numbers 2 and 3

prApp.FileSave
prApp.Quit

End Sub

Set a reference (VBE - Tools - References) to the MS Project Library.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Cathy" wrote in message
...
Hi,
I am trying to create VB code in excel that will

1. open a specific ms project file
2. select a range of excel data
3. update the ms project file
4. save and close the ms project file
5. return to excel

Thank you for any help you can provide

Cathy



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
export Exel task list into Project 2002? TechoPM Excel Discussion (Misc queries) 1 January 15th 09 10:46 PM
Microsoft Project Export to Excel Texins Karate Excel Discussion (Misc queries) 4 February 21st 08 08:14 PM
Have 2 create 2 new date fields after export from MS project 4 piv Bendinblues Excel Discussion (Misc queries) 0 January 2nd 08 12:05 PM
Export from MS Project to excel along with Gant Chart Rayapareddy Excel Discussion (Misc queries) 0 October 30th 07 10:52 AM
Is there a way to export excel data into MS project? soccer75 Excel Discussion (Misc queries) 2 June 12th 06 04:31 PM


All times are GMT +1. The time now is 05:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"