pmarnay
Messages postés2Date d'inscriptionmardi 7 juin 2005StatutMembreDernière intervention22 novembre 2006
-
22 nov. 2006 à 15:27
pmarnay
Messages postés2Date d'inscriptionmardi 7 juin 2005StatutMembreDernière intervention22 novembre 2006
-
22 nov. 2006 à 20:11
Bonjour,
Quelqu'un sait-il comment piloter en VBA un objet Excel inséré dans un powerpoint ?
(p.ex écrire "bonjour!" dans le cellule (2,3) de l'objet )
Par avance, merci
michelxld
Messages postés402Date d'inscriptionvendredi 6 août 2004StatutMembreDernière intervention12 octobre 200832 22 nov. 2006 à 18:19
bonsoir
tu peux essayer d'adapter ce type de procedure:
Dim pwrPoint As PowerPoint.Application
Dim Prez As PowerPoint.Presentation
Dim Forme As PowerPoint.Shape
Dim Presentation As String
Dim Wb As Object
Presentation = "C:\MaPresentation.ppt"
Set pwrPoint = CreateObject("PowerPoint.Application")
pwrPoint.Visible = msoTrue
Set Prez = pwrPoint.presentations.Open(Presentation)
For Each Forme In Prez.Slides(1).Shapes
If Forme.Type = msoEmbeddedOLEObject Then
'ou
'If Forme.Type = msoLinkedOLEObject Then
If Forme.OLEFormat.progID = "Excel.Sheet.8" Then
Set Wb = Forme.OLEFormat.Object
Wb.Worksheets("Feuil1").Cells(2, 3) = "Bonjour"