LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Referencing Fields in MS Project

I have a VB script in an Excel spreadsheet that imports data from a MS
Project file. Right now I have the Project fields that are being
imported hardcoded in the script, e.g. Name, Text1.

For Each task In MSProj.ActiveProject.Tasks
Cells(i,1) = task.Name
Cells(i,2) = task.Text1
i= i+ 1
Next t

I would like to be able to change which fields are being imported by
setting a value on a worksheet rather than having to change the code
each time. So if I wanted the Start and Finish fields for each task
rather than the Name and Text1 fields, I could change some cells from
"Name" and "Text1" to "Start" and "Finish". However, I'm not sure how
to change these strings into something that can reference the proper
field in the task object. Any suggestions.

Thanks.

 
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
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
Linking MS Project fields in Excel TamiFrank Excel Discussion (Misc queries) 0 November 9th 06 12:23 AM
Referencing .Net Remoting Services project in MS Excel Macro Shilpa Excel Discussion (Misc queries) 0 April 10th 06 11:44 AM
Referencing Call to Another Project Phil B[_2_] Excel Programming 4 August 1st 05 03:52 AM
Referencing Code from another project Robert[_16_] Excel Programming 1 August 28th 04 02:20 AM


All times are GMT +1. The time now is 08:30 AM.

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

About Us

"It's about Microsoft Excel"