Has anyone done any project to word integration

G

GdubAZ

I am looking to get data our of project and into word. Something like
extracting data from project for a project charter. Has anyone done anything
along those lines?
 
J

Jim Aksel

You can save MS Project files to XML which is a format supported by MS Word.
Another alternative would be to imbed the mpp file into the doc file, or,
use the screen capture wizard in Project.
--
If this post was helpful, please consider rating it.

Jim

Visit http://project.mvps.org/ for FAQs and more information
about Microsoft Project
 
G

Gilgamesh

GdubAZ said:
I am looking to get data our of project and into word. Something like
extracting data from project for a project charter. Has anyone done
anything
along those lines?


I have written some macros in word that create an MS Project application
object and then uses project data objects to obtain information from the
schedules
 
G

Gérard Ducouret

Hello,
Here is an example of the use of the CreateObject("Excel.Application")
function. You could also study the GetObject function in the Help.
This example reads an Excel workbook, you can adapt it to write in a Word
document
Hope this helps

Gérard Ducouret
---------------------

Sub ImportationExcel_4c()
Dim XLApp As Object 'Excel.Application
Dim Chemin As String, Clic As Integer
Dim NomClasseurXL As String, NomTache As String
Dim No As Integer

Dim oDialog As FileDialog 'Create a
FileDialog object
'Create a FileDialog object as a File Picker dialog box:
Set oDialog = Application.FileDialog(msoFileDialogFilePicker) 'Ouvre
une boîte de dialogue MS Office FilePicker : 'Create a FileDialog object as
a File Picker dialog box.
oDialog.InitialFileName = "D:\Mes documents\DT a traiter\" 'Set the
initial path to the D:\ drive.
oDialog.Filters.Add "Fichiers Excel", "*.xls" 'Sélection
sur les classeurs .XLS
oDialog.Title = "Sélectionnez le fichier Excel" 'Titre de la
boîte de dialogue
oDialog.AllowMultiSelect = False 'Pas de
sélection multiple
If oDialog.Show = 0 Then
'Affiche la boîte de dialogue MS Office FilePicker
MsgBox "Opération annulée", vbExclamation, "Pas d'importation à
partir d'Excel"

Exit Sub
Else
If oDialog.SelectedItems.Count > 0 Then
NomClasseurXL = oDialog.SelectedItems(1)
Set XLApp = CreateObject("Excel.Application")
XLApp.Visible = False
End If
End If
Set oDialog = Nothing

XLApp.WorkBooks.Open NomClasseurXL
XLApp.Visible = False

With XLApp
'Do a lot of things here...
End With
'Application.ScreenUpdating = True
MsgBox "Importation des données Excel terminée", vbInformation, "Génération
demande via Excel"

XLApp.ActiveWorkbook.Close SaveChanges:=False 'Ferme le Classeur sans
sauvegarde !
XLApp.Quit
Set XLApp = Nothing

End Sub
 

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