Results 1 to 2 of 2

Thread: How to reconstruct the Microsoft Project Task information to Excel sheet by VBA?

  1. #1
    Join Date
    Apr 2009
    Location
    Korea
    Posts
    1

    blush How to reconstruct the Microsoft Project Task information to Excel sheet by VBA?

    Hello.

    I'm making a macro to reconstruct the Microsoft Project Document.

    and I'm trying with VBA to resave the tasks matters that I want to show.

    So I want to save Excel sheet through Microsoft Project Macro.

    How can I solve this problem.

    Thank you in advance.

  2. #2
    Join Date
    May 2008
    Posts
    271

    Re: How to reconstruct the Microsoft Project Task information to Excel sheet by VBA?

    The first thing is in how to set the task. This is done using the Set keyword. Typically one sets a collection to all the tasks in the project, but it is possible to set it to some other task collection.

    Here is an example of setting it to the tasks in the active project:

    Dim ts as Tasks
    Set ts = ActiveProject.Tasks

    Using a Project object of some kind is essential to programming Project. Like the Task object, it is also a member of a collection, in this case it is part of the Projects collection. Although the Projects collection is under the Application it is what Microsoft calls a "top-level object" meaning that you can use it without needing to specify the Application. This means both of the following are equivalent within Project (though if you are controlling project from another application you will want to specify the application just to be clear):

    Application.Projects
    is the same as:
    Projects

    For more information on: How To Create an Excel Macro

Similar Threads

  1. Replies: 4
    Last Post: 20-04-2012, 11:22 PM
  2. How to get rid of single quote in Microsoft Excel sheet
    By Wisaal in forum MS Office Support
    Replies: 2
    Last Post: 10-02-2012, 05:22 PM
  3. Not able to edit a lock sheet in Microsoft Excel
    By Tur^turro in forum MS Office Support
    Replies: 3
    Last Post: 25-01-2012, 08:01 PM
  4. How to recover a deleted sheet in Microsoft Excel 2007
    By Al Kaholic in forum MS Office Support
    Replies: 2
    Last Post: 24-01-2012, 07:44 PM
  5. Exporting Project files in form of Excel Sheet
    By aelmalki in forum Microsoft Project
    Replies: 10
    Last Post: 20-04-2011, 07:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,914,932.81708 seconds with 17 queries