Ahh la fin de semaine.. moment propice pour ce retrouver en famille, décrocher du boulot... bon qu'est-ce qu'on disait.
Bon Lundi Franckin,
je t'explique mon code et comment l'adapter à ta situation. J'ai apporté quelque modification :
Public Sub LienPowerPoint(PagePowerpoint As Integer)
Dim appPowerPoint As PowerPoint.Application
Dim MaPresentation As PowerPoint.Presentation
'Création d'un objet Powerpoint
Set appPowerPoint = CreateObject("PowerPoint.Application")
appPowerPoint.Visible = True
'Ouvre ton fichier powerpoint
Set MaPresentation = appPowerPoint.Presentations.Open(Filename:=ActiveWorkbook.Path & "\Test.ppt")
'Sélectionne la bonne diapo
MaPresentation.Slides(PagePowerpoint).Select
'Libère les variables
Set MaPresentation = Nothing
Set appPowerPoint = Nothing
End Sub
Dans cette ligne remplace mon fichier Test.ppt par le tiens. S'il n'est pas dans le même répertoire, enlève ActiveWorkbook.path et entre l'adresse au long.
Set MaPresentation = appPowerPoint.Presentations.Open(Filename:=ActiveWorkbook.Path & "\Test.ppt")
ensuite appelle la procédure dans ton code quand tu voudras afficher le diapo de powerpoint en mettant le numéro de page en argument.
Private Sub CommandButton1_Click()
Call LienPowerPoint(2)
End Sub
J'ai créer un bouton et en cliquant dessus, il affiche la page 2 du fichier powerpoint Test.ppt.
Voila tu devrais pouvoir te débrouiller un peu avec ça, si t'as des questions hésite pas.
Bonne journée.
( en passant j'ai pas l'habitude d'abandonner quelqu'un que je commence à aider. )