Accueil > > > DIAPORAMA POWERPOINT DEPUIS EXCEL
DIAPORAMA POWERPOINT DEPUIS EXCEL
Information sur la source
Description
Créer un diaporama PPT depuis Excel.Vous sélectionnez un dossier d'images, vous pouvez supprimer, monter et descendre les fichiers dans une listBox.Vous pouvez mettre un cadre autour des images à la couleur, au dégradé, au motif et à la texture que vous désirez ainsi q'un titre de présentation sur la 1ère diapo.Vous pouvez choisir pour les transitions: l'effet, la vitesse et le délai ainsi q'un fichier son (wav uniquement). Option: Diapo en continu jusquà échap, Son en boucle.Ensuite vous sélectionnez tout les fichiers et votre diaporama est crée, il ne vous reste plus qu'a l'enregistrer.
Source
- 'Necessite de cocher la référence:Microsoft PowerPoint 11.0 Object Library
- 'Ouvrir fichiers dans leur programme par défaut
- Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
- (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
- ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
- Dim var As String
- Private Sub CommandButton1_Click()
- On Error Resume Next 'En cas d'erreur d'ouverture
- AfficheFichiersEtChemins 'on ouvre le dossier
- LignesVisiblesSurFiltre 'on compte les fichiers
- inverser 'inverser les fichiers pour qu'ils soient dans l'ordre dans la présentation
- End Sub
- Private Sub CommandButton2_Click() 'création du diaporama
- Dim I As Integer
- Dim ppApp As PowerPoint.Application
- Dim ppPres As PowerPoint.Presentation
- Dim ppShape As PowerPoint.Shape
- Dim ppCurrentSlide As PowerPoint.Slide
-
- On Error Resume Next
- Set ppApp = CreateObject("PowerPoint.Application")
- ppApp.Visible = True
-
- Set ppPres = ppApp.Presentations.Add(msoTrue)
- Set ppCurrentSlide = ppPres.Slides.Add(Index:=1, Layout:=ppLayoutBlank)
-
- 'On sélectionne les images
- For I = 0 To Me.ListBox1.ListIndex()
-
- With ppPres.Slides.item(1).Shapes '*** Insère l'image.
-
- '*** Ajoute le slide
- Set ppCurrentSlide = ppPres.Slides.Add(Index:=1, Layout:=PowerPoint.PpSlideLayout.ppLayoutBlank)
- 'Transitions
- Set mySlides = ppPres.Slides.Range(Array(1, 3)).SlideShowTransition
- 'Vitesse Transition
- If OptionButton3 = True Then
- mySlides.Speed = ppTransitionSpeedFast
- ElseIf OptionButton4 = True Then
- mySlides.Speed = ppTransitionSpeedMedium
- ElseIf OptionButton5 = True Then
- mySlides.Speed = ppTransitionSpeedSlow
- End If
-
- 'Effets Transition voir feuil3
- If OptionButton6 = True Then
- mySlides.EntryEffect = ppEffectNone
- ElseIf OptionButton7 = True Then
- mySlides.EntryEffect = ppEffectAppear
- ElseIf OptionButton8 = True Then
- mySlides.EntryEffect = ppEffectBlindsHorizontal
- ElseIf OptionButton9 = True Then
- mySlides.EntryEffect = ppEffectBlindsVertical
- ElseIf OptionButton10 = True Then
- mySlides.EntryEffect = ppEffectBoxIn
- ElseIf OptionButton11 = True Then
- mySlides.EntryEffect = ppEffectBoxOut
- ElseIf OptionButton12 = True Then
- mySlides.EntryEffect = ppEffectCheckerboardAcross
- ElseIf OptionButton13 = True Then
- mySlides.EntryEffect = ppEffectCheckerboardDown
- ElseIf OptionButton14 = True Then
- mySlides.EntryEffect = ppEffectCoverDown
- ElseIf OptionButton15 = True Then
- mySlides.EntryEffect = ppEffectCoverLeft
- ElseIf OptionButton16 = True Then
- mySlides.EntryEffect = ppEffectCoverLeftDown
- ElseIf OptionButton17 = True Then
- mySlides.EntryEffect = ppEffectCoverLeftUp
- ElseIf OptionButton18 = True Then
- mySlides.EntryEffect = ppEffectCoverRight
- ElseIf OptionButton19 = True Then
- mySlides.EntryEffect = ppEffectCoverRightDown
- ElseIf OptionButton20 = True Then
- mySlides.EntryEffect = ppEffectCoverRightUp
- ElseIf OptionButton21 = True Then
- mySlides.EntryEffect = ppEffectCoverUp
- ElseIf OptionButton22 = True Then
- mySlides.EntryEffect = ppEffectDissolve
- ElseIf OptionButton23 = True Then
- mySlides.EntryEffect = ppEffectFade
- ElseIf OptionButton24 = True Then
- mySlides.EntryEffect = ppEffectRandom
- ElseIf OptionButton25 = True Then
- mySlides.EntryEffect = ppEffectSplitHorizontalIn
- ElseIf OptionButton26 = True Then
- mySlides.EntryEffect = ppEffectSplitHorizontalOut
- ElseIf OptionButton27 = True Then
- mySlides.EntryEffect = ppEffectSplitVerticalIn
- ElseIf OptionButton28 = True Then
- mySlides.EntryEffect = ppEffectSplitVerticalOut
- ElseIf OptionButton29 = True Then
- mySlides.EntryEffect = ppEffectUncoverDown
- ElseIf OptionButton30 = True Then
- mySlides.EntryEffect = ppEffectUncoverLeft
- ElseIf OptionButton31 = True Then
- mySlides.EntryEffect = ppEffectUncoverLeftDown
- ElseIf OptionButton32 = True Then
- mySlides.EntryEffect = ppEffectUncoverLeftUp
- ElseIf OptionButton33 = True Then
- mySlides.EntryEffect = ppEffectUncoverRight
- ElseIf OptionButton34 = True Then
- mySlides.EntryEffect = ppEffectUncoverRightDown
- ElseIf OptionButton35 = True Then
- mySlides.EntryEffect = ppEffectUncoverRightUp
- ElseIf OptionButton36 = True Then
- mySlides.EntryEffect = ppEffectUncoverUp
- ElseIf OptionButton37 = True Then
- mySlides.EntryEffect = ppEffectWipeDown
- ElseIf OptionButton38 = True Then
- mySlides.EntryEffect = ppEffectWipeLeft
- ElseIf OptionButton39 = True Then
- mySlides.EntryEffect = ppEffectWipeRight
- ElseIf OptionButton40 = True Then
- mySlides.EntryEffect = ppEffectWipeUp
- ElseIf OptionButton41 = True Then
- mySlides.EntryEffect = ppEffectStripsDownLeft
- End If
-
- 'DélaiTransitions
- mySlides.AdvanceOnTime = True
- mySlides.AdvanceTime = Me.ComboBox1 'délai entre les transitions en secondes
-
- '*** Ajoute la couleur désirée
- Set mySlides = ppPres.Slides(2) '2ème diapo
-
- 'Ajoute Dégradés voir feuille 2
- If OptionButton56 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4) 'Sans dégradé
- End With
- ElseIf OptionButton57 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4)
- .BackColor.RGB = RGB(Label9, Label10, Label11)
- .TwoColorGradient msoGradientHorizontal, Variant:=3 'dégradé Horizontal
- End With
- ElseIf OptionButton58 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4)
- .BackColor.RGB = RGB(Label9, Label10, Label11)
- .TwoColorGradient msoGradientFromCenter, Variant:=2 'dégradé du centre
- End With
- ElseIf OptionButton59 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4)
- .BackColor.RGB = RGB(Label9, Label10, Label11)
- .TwoColorGradient msoGradientDiagonalDown, Variant:=4 'dégradé Diagonal
- End With
- End If
-
- 'Ajoute Motifs voir feuille 4
- If OptionButton42 = True Then
- mySlides.Shapes.Range(1).Fill _
- .Patterned msoPatternMixed
- ElseIf OptionButton43 = True Then
- mySlides.Shapes.Range(1).Fill _
- .Patterned msoPatternDiagonalBrick
- ElseIf OptionButton44 = True Then
- mySlides.Shapes.Range(1).Fill _
- .Patterned msoPatternTrellis
- ElseIf OptionButton45 = True Then
- mySlides.Shapes.Range(1).Fill _
- .Patterned msoPatternSphere
- ElseIf OptionButton46 = True Then
- mySlides.Shapes.Range(1).Fill _
- .Patterned msoPatternZigZag
- ElseIf OptionButton47 = True Then
- mySlides.Shapes.Range(1).Fill _
- .Patterned msoPatternPlaid
- ElseIf OptionButton48 = True Then
- mySlides.Shapes.Range(1).Fill _
- .Patterned msoPatternSolidDiamond
- End If
-
- 'Ajoute Textures voir feuille 4
- If OptionButton49 = True Then
- mySlides.Shapes.Range(1).Fill _
- .PresetTextured msoPresetTextureMixed
- ElseIf OptionButton50 = True Then
- mySlides.Shapes.Range(1).Fill _
- .PresetTextured msoTextureCanvas
- ElseIf OptionButton51 = True Then
- mySlides.Shapes.Range(1).Fill _
- .PresetTextured msoTextureGreenMarble
- ElseIf OptionButton52 = True Then
- mySlides.Shapes.Range(1).Fill _
- .PresetTextured msoTexturePapyrus
- ElseIf OptionButton53 = True Then
- mySlides.Shapes.Range(1).Fill _
- .PresetTextured msoTextureWaterDroplets
- ElseIf OptionButton54 = True Then
- mySlides.Shapes.Range(1).Fill _
- .PresetTextured msoTextureBouquet
- ElseIf OptionButton55 = True Then
- mySlides.Shapes.Range(1).Fill _
- .PresetTextured msoTextureDenim
- End If
-
- If OptionButton1 = True Then 'Sans cadre
- '*** Ajoute image à la dimension désirée
- Set oPicture = .AddPicture(Me.ListBox1.List(I), msoFalse, msoTrue, 0, 0)
- If oPicture.Height > oPicture.Width Then
- 'Mis à l'échelle
- oPicture.ScaleHeight 0.85, msoTrue 'mode portrait
- oPicture.ScaleWidth 0.85, msoTrue
- Else
- oPicture.ScaleHeight 1.13, msoTrue 'mode paysage
- oPicture.ScaleWidth 1.13, msoTrue
- End If
- 'Centrer l'image
- With ppPres.PageSetup
- oPicture.Left = (.SlideWidth \ 2) - (oPicture.Width \ 2)
- oPicture.Top = (.SlideHeight \ 2) - (oPicture.Height \ 2)
- End With
-
- Else
- OptionButton2 = True 'Avec cadre
- '*** Ajoute image à la dimension désirée
- Set oPicture = .AddPicture(Me.ListBox1.List(I), msoFalse, msoTrue, 0, 0)
- If oPicture.Height > oPicture.Width Then
- 'Mis à l'échelle
- oPicture.ScaleHeight 0.75, msoTrue 'mode portrait
- oPicture.ScaleWidth 0.75, msoTrue
- Else
- oPicture.ScaleHeight 1, msoTrue 'mode paysage
- oPicture.ScaleWidth 1, msoTrue
- End If
- 'Centrer l'image
- With ppPres.PageSetup
- oPicture.Left = (.SlideWidth \ 2) - (oPicture.Width \ 2)
- oPicture.Top = (.SlideHeight \ 2) - (oPicture.Height \ 2)
- End With
-
- End If
- End With
- Next I
- 'Titre de la présentation
- Titre_presentation 'nom du PC
- '(1)affiche sur la 1ère diapo
- Set mySlides = ppPres.Slides(1) '1ère diapo
-
- 'Ajoute Dégradés voir feuille 2
- If OptionButton56 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4) 'Sans dégradé
- End With
- ElseIf OptionButton57 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4)
- .BackColor.RGB = RGB(Label9, Label10, Label11)
- .TwoColorGradient msoGradientHorizontal, Variant:=3 'dégradé Horizontal
- End With
- ElseIf OptionButton58 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4)
- .BackColor.RGB = RGB(Label9, Label10, Label11)
- .TwoColorGradient msoGradientFromCenter, Variant:=2 'dégradé du centre
- End With
- ElseIf OptionButton59 = True Then
- With mySlides.Shapes.AddShape(msoShapeRectangle, _
- 0, 0, 720, 540).Fill
- .ForeColor.RGB = RGB(Label2, Label3, Label4)
- .BackColor.RGB = RGB(Label9, Label10, Label11)
- .TwoColorGradient msoGradientDiagonalDown, Variant:=4 'dégradé Diagonal
- End With
- End If
-
- 'Texte
- Set mySlides = ppPres.Slides(1)
- mySlides.Shapes.AddShape(msoShapeRectangle, 150, 200, 420, 120) _
- .TextFrame.TextRange.Text = "Présentation créée par " & Me.TextBox3
-
-
- 'Ajoute Motifs voir feuille 4
- Set mySlides = ppPres.Slides(1) '1ère diapo
- If OptionButton42 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .Patterned msoPatternMixed
- ElseIf OptionButton43 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .Patterned msoPatternDiagonalBrick
- ElseIf OptionButton44 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .Patterned msoPatternTrellis
- ElseIf OptionButton45 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .Patterned msoPatternSphere
- ElseIf OptionButton46 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .Patterned msoPatternZigZag
- ElseIf OptionButton47 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .Patterned msoPatternPlaid
- ElseIf OptionButton48 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .Patterned msoPatternSolidDiamond
- End If
-
- 'Ajoute Textures voir feuille 4
- Set mySlides = ppPres.Slides(1) '1ère diapo
- If OptionButton49 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .PresetTextured msoPresetTextureMixed
- ElseIf OptionButton50 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .PresetTextured msoTextureCanvas
- ElseIf OptionButton51 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .PresetTextured msoTextureGreenMarble
- ElseIf OptionButton52 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .PresetTextured msoTexturePapyrus
- ElseIf OptionButton53 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .PresetTextured msoTextureWaterDroplets
- ElseIf OptionButton54 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .PresetTextured msoTextureBouquet
- ElseIf OptionButton55 = True Then
- mySlides.Shapes.Range(Array(1, 2)).Fill _
- .PresetTextured msoTextureDenim
- End If
- 'ppPres.Slides(1).Delete 'à activer si l'on veut supprimer le nom, modifier pour le son (2)
-
- 'Titre de la présentation et nom du dernier auteur de modification du fichier
- With ppPres.Slides.Add(Index:=1, Layout:=ppLayoutTitle).Shapes
- .Title.TextFrame.TextRange = Me.TextBox4
- .Placeholders(2).TextFrame.TextRange = "Créé par " & ThisWorkbook.BuiltinDocumentProperties("Last author").Value _
- & vbNewLine & "Pour démarrer: cliquez." _
- & vbNewLine & "Défilement automatique ensuite."
- End With
-
- ' Diapo en continu jusqu'à echap
- If CheckBox1 = True Then
- With ppPres.SlideShowSettings
- .LoopUntilStopped = msoTrue
- .AdvanceMode = PowerPoint.PpSlideShowAdvanceMode.ppSlideShowUseSlideTimings
- End With
- End If
-
- 'Sonorisation
- If TextBox2 = "" Then
- Exit Sub
- Else
- If CheckBox2 = True Then
- With ppPres.Slides(3).SlideShowTransition '(3)démarre à la 1ère image
- .SoundEffect.ImportFromFile (Me.TextBox2) 'chemin fichier son
- .LoopSoundUntilNext = msoTrue 'en boucle jusqu'au son suivant
- End With
- Else
- Set mySlides = ppPres.Slides(3).SlideShowTransition '(3)démarre à la 1ère image
- mySlides.SoundEffect.ImportFromFile (Me.TextBox2) 'chemin fichier son
- End If
- End If
- End Sub
- Private Sub CommandButton3_Click()
- SupprimeLignesAvecTtexte ' on efface la liste
- TextBox1 = "0 fichier"
- End Sub
- Private Sub CommandButton4_Click()
- SupprimeLignesAvecTtexte ' on efface la liste
- Unload UserForm1 'on ferme
- End
- End Sub
- Private Sub CommandButton5_Click()
- Dim LigneSelectionnée As Integer
- 'Cherche la ligne selectionnée
- LigneSelectionnée = Me.ListBox1.ListIndex + 1
- If Me.ListBox1.ListCount >= 0 And LigneSelectionnée > 0 Then
- 'Supprime la ligne
- Feuil1.Rows(LigneSelectionnée).Delete
- End If
- LignesVisiblesSurFiltre 'On compte les fichiers
- End Sub
- Private Sub CommandButton6_Click()
- choisir_color 'on appelle la boite couleur
- Couleur 'on transforme en RGB
- CommandButton6.BackColor = RGB(Label2, Label3, Label4) 'on met la couleur sur le bouton
- OptionButton49 = True 'Sans texture
- End Sub
- Private Sub CommandButton7_Click()
- 'On cherche le chemin du fichier son
- On Error Resume Next
- Application.FileDialog(msoFileDialogOpen).Show
- TextBox2 = Application.FileDialog(msoFileDialogFilePicker).SelectedItems(1)
- CheckBox2.Visible = True 'en boucle
- End Sub
- Private Sub CommandButton8_Click()
- choisir_degrade 'on appelle la boite couleur
- Degrade 'on transforme en RGB
- CommandButton8.BackColor = RGB(Label9, Label10, Label11) 'on met la couleur sur le bouton
- OptionButton49 = True 'Sans texture
- End Sub
- Sub inverser()
- 'inverser les données d'une colonne et renvoyer le résultat dans une autre
- Dim LCol$, LRow&, I&, ValCol
- LCol = "A"
- If LCol = "" Then Exit Sub
- LRow = Range(LCol & Rows.Count).End(xlUp).Row
- ValCol = Range(LCol & "1:" & LCol & LRow).Value
- LCol = "A"
- If LCol = "" Then Exit Sub
- Application.ScreenUpdating = False
- For I = UBound(ValCol) To LBound(ValCol) Step -1
- Range(LCol & UBound(ValCol) - I + 1).Value = ValCol(I, 1)
- Next I
-
- End Sub
-
- Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
- On Error Resume Next
- With Me.ListBox1
- If .ListIndex > -1 Then
- var = .List(.ListIndex)
- End If
- End With
- If var = "" Then
- MsgBox (" Il n'y a aucune saisie!.")
- Exit Sub
- Else
-
- 'Ouvriravec
- Dim Ret As Variant
- Ret = ShellExecute(hwnd, "open", var, "", vbNullString, 1)
- End If
- End Sub
- Private Sub MoveDown_Click()
- Dim lCurrentListIndex As Long
- Dim strRowSource As String
- Dim strAddress As String
- Dim strSheetName As String
-
-
- With ListBox1
- If .ListIndex < 0 Or .ListIndex = .ListCount - 1 Then Exit Sub
- lCurrentListIndex = .ListIndex + 1
- strRowSource = .RowSource
- strAddress = Range(strRowSource).Address
- strSheetName = Range(strRowSource).Parent.Name
- .RowSource = vbNullString
- With Range(strRowSource)
- .Rows(lCurrentListIndex).Cut
- .Rows(lCurrentListIndex + 2).Insert Shift:=xlDown
- End With
- 'Sheets(strSheetName).Range(strAddress).Name = strRowSource
- .RowSource = strRowSource
- .Selected(lCurrentListIndex) = True
- End With
- End Sub
- Private Sub MoveUp_Click()
- Dim lCurrentListIndex As Long
- Dim strRowSource As String
- Dim strAddress As String
- Dim strSheetName As String
-
-
- With ListBox1
- If .ListIndex < 1 Then Exit Sub
- lCurrentListIndex = .ListIndex + 1
- strRowSource = .RowSource
- strAddress = Range(strRowSource).Address
- strSheetName = Range(strRowSource).Parent.Name
- .RowSource = vbNullString
- With Range(strRowSource)
- .Rows(lCurrentListIndex).Cut
- .Rows(lCurrentListIndex - 1).Insert Shift:=xlDown
- End With
- 'Sheets(strSheetName).Range(strAddress).Name = strRowSource
- .RowSource = strRowSource
- .Selected(lCurrentListIndex - 2) = True
- End With
- End Sub
- Private Sub OptionButton56_Click()
- CommandButton8.Visible = False
- End Sub
- Private Sub OptionButton57_Click()
- CommandButton8.Visible = True
- End Sub
- Private Sub OptionButton58_Click()
- CommandButton8.Visible = True
- End Sub
- Private Sub OptionButton59_Click()
- CommandButton8.Visible = True
- End Sub
- Private Sub TextBox4_Change()
- If TextBox4 = "" Then
- TextBox4 = "Nouvel Album"
- End If
- End Sub
- Private Sub UserForm_Initialize()
- ListBox1.ControlTipText = "Double clic pour ouvrir" _
- & vbNewLine & "Sélectionnez le dernier fichier pour créer un Diaporama" _
- & vbNewLine & "Sélectionnez à chaque fois pour monter et descendre" _
- & vbNewLine & "Sélectionnez Single pour supprimer"
- OptionButton1 = True
- OptionButton3 = True
- OptionButton6 = True
- OptionButton42 = True
- OptionButton49 = True
- OptionButton56 = True
- Label2 = "255"
- Label3 = "255"
- Label4 = "255"
- CommandButton6.BackColor = RGB(Label2, Label3, Label4) 'on met la couleur sur le bouton
- CommandButton8.Visible = False
- CheckBox2.Visible = False
- End Sub
- Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
- 'On empêche de fermer avec la croix
- If CloseMode = vbFormControlMenu Then
- MsgBox "Vous ne pouvez pas utiliser ce bouton de fermeture."
- Cancel = True
- End If
- End Sub
'Necessite de cocher la référence:Microsoft PowerPoint 11.0 Object Library
'Ouvrir fichiers dans leur programme par défaut
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Dim var As String
Private Sub CommandButton1_Click()
On Error Resume Next 'En cas d'erreur d'ouverture
AfficheFichiersEtChemins 'on ouvre le dossier
LignesVisiblesSurFiltre 'on compte les fichiers
inverser 'inverser les fichiers pour qu'ils soient dans l'ordre dans la présentation
End Sub
Private Sub CommandButton2_Click() 'création du diaporama
Dim I As Integer
Dim ppApp As PowerPoint.Application
Dim ppPres As PowerPoint.Presentation
Dim ppShape As PowerPoint.Shape
Dim ppCurrentSlide As PowerPoint.Slide
On Error Resume Next
Set ppApp = CreateObject("PowerPoint.Application")
ppApp.Visible = True
Set ppPres = ppApp.Presentations.Add(msoTrue)
Set ppCurrentSlide = ppPres.Slides.Add(Index:=1, Layout:=ppLayoutBlank)
'On sélectionne les images
For I = 0 To Me.ListBox1.ListIndex()
With ppPres.Slides.item(1).Shapes '*** Insère l'image.
'*** Ajoute le slide
Set ppCurrentSlide = ppPres.Slides.Add(Index:=1, Layout:=PowerPoint.PpSlideLayout.ppLayoutBlank)
'Transitions
Set mySlides = ppPres.Slides.Range(Array(1, 3)).SlideShowTransition
'Vitesse Transition
If OptionButton3 = True Then
mySlides.Speed = ppTransitionSpeedFast
ElseIf OptionButton4 = True Then
mySlides.Speed = ppTransitionSpeedMedium
ElseIf OptionButton5 = True Then
mySlides.Speed = ppTransitionSpeedSlow
End If
'Effets Transition voir feuil3
If OptionButton6 = True Then
mySlides.EntryEffect = ppEffectNone
ElseIf OptionButton7 = True Then
mySlides.EntryEffect = ppEffectAppear
ElseIf OptionButton8 = True Then
mySlides.EntryEffect = ppEffectBlindsHorizontal
ElseIf OptionButton9 = True Then
mySlides.EntryEffect = ppEffectBlindsVertical
ElseIf OptionButton10 = True Then
mySlides.EntryEffect = ppEffectBoxIn
ElseIf OptionButton11 = True Then
mySlides.EntryEffect = ppEffectBoxOut
ElseIf OptionButton12 = True Then
mySlides.EntryEffect = ppEffectCheckerboardAcross
ElseIf OptionButton13 = True Then
mySlides.EntryEffect = ppEffectCheckerboardDown
ElseIf OptionButton14 = True Then
mySlides.EntryEffect = ppEffectCoverDown
ElseIf OptionButton15 = True Then
mySlides.EntryEffect = ppEffectCoverLeft
ElseIf OptionButton16 = True Then
mySlides.EntryEffect = ppEffectCoverLeftDown
ElseIf OptionButton17 = True Then
mySlides.EntryEffect = ppEffectCoverLeftUp
ElseIf OptionButton18 = True Then
mySlides.EntryEffect = ppEffectCoverRight
ElseIf OptionButton19 = True Then
mySlides.EntryEffect = ppEffectCoverRightDown
ElseIf OptionButton20 = True Then
mySlides.EntryEffect = ppEffectCoverRightUp
ElseIf OptionButton21 = True Then
mySlides.EntryEffect = ppEffectCoverUp
ElseIf OptionButton22 = True Then
mySlides.EntryEffect = ppEffectDissolve
ElseIf OptionButton23 = True Then
mySlides.EntryEffect = ppEffectFade
ElseIf OptionButton24 = True Then
mySlides.EntryEffect = ppEffectRandom
ElseIf OptionButton25 = True Then
mySlides.EntryEffect = ppEffectSplitHorizontalIn
ElseIf OptionButton26 = True Then
mySlides.EntryEffect = ppEffectSplitHorizontalOut
ElseIf OptionButton27 = True Then
mySlides.EntryEffect = ppEffectSplitVerticalIn
ElseIf OptionButton28 = True Then
mySlides.EntryEffect = ppEffectSplitVerticalOut
ElseIf OptionButton29 = True Then
mySlides.EntryEffect = ppEffectUncoverDown
ElseIf OptionButton30 = True Then
mySlides.EntryEffect = ppEffectUncoverLeft
ElseIf OptionButton31 = True Then
mySlides.EntryEffect = ppEffectUncoverLeftDown
ElseIf OptionButton32 = True Then
mySlides.EntryEffect = ppEffectUncoverLeftUp
ElseIf OptionButton33 = True Then
mySlides.EntryEffect = ppEffectUncoverRight
ElseIf OptionButton34 = True Then
mySlides.EntryEffect = ppEffectUncoverRightDown
ElseIf OptionButton35 = True Then
mySlides.EntryEffect = ppEffectUncoverRightUp
ElseIf OptionButton36 = True Then
mySlides.EntryEffect = ppEffectUncoverUp
ElseIf OptionButton37 = True Then
mySlides.EntryEffect = ppEffectWipeDown
ElseIf OptionButton38 = True Then
mySlides.EntryEffect = ppEffectWipeLeft
ElseIf OptionButton39 = True Then
mySlides.EntryEffect = ppEffectWipeRight
ElseIf OptionButton40 = True Then
mySlides.EntryEffect = ppEffectWipeUp
ElseIf OptionButton41 = True Then
mySlides.EntryEffect = ppEffectStripsDownLeft
End If
'DélaiTransitions
mySlides.AdvanceOnTime = True
mySlides.AdvanceTime = Me.ComboBox1 'délai entre les transitions en secondes
'*** Ajoute la couleur désirée
Set mySlides = ppPres.Slides(2) '2ème diapo
'Ajoute Dégradés voir feuille 2
If OptionButton56 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4) 'Sans dégradé
End With
ElseIf OptionButton57 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4)
.BackColor.RGB = RGB(Label9, Label10, Label11)
.TwoColorGradient msoGradientHorizontal, Variant:=3 'dégradé Horizontal
End With
ElseIf OptionButton58 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4)
.BackColor.RGB = RGB(Label9, Label10, Label11)
.TwoColorGradient msoGradientFromCenter, Variant:=2 'dégradé du centre
End With
ElseIf OptionButton59 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4)
.BackColor.RGB = RGB(Label9, Label10, Label11)
.TwoColorGradient msoGradientDiagonalDown, Variant:=4 'dégradé Diagonal
End With
End If
'Ajoute Motifs voir feuille 4
If OptionButton42 = True Then
mySlides.Shapes.Range(1).Fill _
.Patterned msoPatternMixed
ElseIf OptionButton43 = True Then
mySlides.Shapes.Range(1).Fill _
.Patterned msoPatternDiagonalBrick
ElseIf OptionButton44 = True Then
mySlides.Shapes.Range(1).Fill _
.Patterned msoPatternTrellis
ElseIf OptionButton45 = True Then
mySlides.Shapes.Range(1).Fill _
.Patterned msoPatternSphere
ElseIf OptionButton46 = True Then
mySlides.Shapes.Range(1).Fill _
.Patterned msoPatternZigZag
ElseIf OptionButton47 = True Then
mySlides.Shapes.Range(1).Fill _
.Patterned msoPatternPlaid
ElseIf OptionButton48 = True Then
mySlides.Shapes.Range(1).Fill _
.Patterned msoPatternSolidDiamond
End If
'Ajoute Textures voir feuille 4
If OptionButton49 = True Then
mySlides.Shapes.Range(1).Fill _
.PresetTextured msoPresetTextureMixed
ElseIf OptionButton50 = True Then
mySlides.Shapes.Range(1).Fill _
.PresetTextured msoTextureCanvas
ElseIf OptionButton51 = True Then
mySlides.Shapes.Range(1).Fill _
.PresetTextured msoTextureGreenMarble
ElseIf OptionButton52 = True Then
mySlides.Shapes.Range(1).Fill _
.PresetTextured msoTexturePapyrus
ElseIf OptionButton53 = True Then
mySlides.Shapes.Range(1).Fill _
.PresetTextured msoTextureWaterDroplets
ElseIf OptionButton54 = True Then
mySlides.Shapes.Range(1).Fill _
.PresetTextured msoTextureBouquet
ElseIf OptionButton55 = True Then
mySlides.Shapes.Range(1).Fill _
.PresetTextured msoTextureDenim
End If
If OptionButton1 = True Then 'Sans cadre
'*** Ajoute image à la dimension désirée
Set oPicture = .AddPicture(Me.ListBox1.List(I), msoFalse, msoTrue, 0, 0)
If oPicture.Height > oPicture.Width Then
'Mis à l'échelle
oPicture.ScaleHeight 0.85, msoTrue 'mode portrait
oPicture.ScaleWidth 0.85, msoTrue
Else
oPicture.ScaleHeight 1.13, msoTrue 'mode paysage
oPicture.ScaleWidth 1.13, msoTrue
End If
'Centrer l'image
With ppPres.PageSetup
oPicture.Left = (.SlideWidth \ 2) - (oPicture.Width \ 2)
oPicture.Top = (.SlideHeight \ 2) - (oPicture.Height \ 2)
End With
Else
OptionButton2 = True 'Avec cadre
'*** Ajoute image à la dimension désirée
Set oPicture = .AddPicture(Me.ListBox1.List(I), msoFalse, msoTrue, 0, 0)
If oPicture.Height > oPicture.Width Then
'Mis à l'échelle
oPicture.ScaleHeight 0.75, msoTrue 'mode portrait
oPicture.ScaleWidth 0.75, msoTrue
Else
oPicture.ScaleHeight 1, msoTrue 'mode paysage
oPicture.ScaleWidth 1, msoTrue
End If
'Centrer l'image
With ppPres.PageSetup
oPicture.Left = (.SlideWidth \ 2) - (oPicture.Width \ 2)
oPicture.Top = (.SlideHeight \ 2) - (oPicture.Height \ 2)
End With
End If
End With
Next I
'Titre de la présentation
Titre_presentation 'nom du PC
'(1)affiche sur la 1ère diapo
Set mySlides = ppPres.Slides(1) '1ère diapo
'Ajoute Dégradés voir feuille 2
If OptionButton56 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4) 'Sans dégradé
End With
ElseIf OptionButton57 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4)
.BackColor.RGB = RGB(Label9, Label10, Label11)
.TwoColorGradient msoGradientHorizontal, Variant:=3 'dégradé Horizontal
End With
ElseIf OptionButton58 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4)
.BackColor.RGB = RGB(Label9, Label10, Label11)
.TwoColorGradient msoGradientFromCenter, Variant:=2 'dégradé du centre
End With
ElseIf OptionButton59 = True Then
With mySlides.Shapes.AddShape(msoShapeRectangle, _
0, 0, 720, 540).Fill
.ForeColor.RGB = RGB(Label2, Label3, Label4)
.BackColor.RGB = RGB(Label9, Label10, Label11)
.TwoColorGradient msoGradientDiagonalDown, Variant:=4 'dégradé Diagonal
End With
End If
'Texte
Set mySlides = ppPres.Slides(1)
mySlides.Shapes.AddShape(msoShapeRectangle, 150, 200, 420, 120) _
.TextFrame.TextRange.Text = "Présentation créée par " & Me.TextBox3
'Ajoute Motifs voir feuille 4
Set mySlides = ppPres.Slides(1) '1ère diapo
If OptionButton42 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.Patterned msoPatternMixed
ElseIf OptionButton43 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.Patterned msoPatternDiagonalBrick
ElseIf OptionButton44 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.Patterned msoPatternTrellis
ElseIf OptionButton45 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.Patterned msoPatternSphere
ElseIf OptionButton46 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.Patterned msoPatternZigZag
ElseIf OptionButton47 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.Patterned msoPatternPlaid
ElseIf OptionButton48 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.Patterned msoPatternSolidDiamond
End If
'Ajoute Textures voir feuille 4
Set mySlides = ppPres.Slides(1) '1ère diapo
If OptionButton49 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.PresetTextured msoPresetTextureMixed
ElseIf OptionButton50 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.PresetTextured msoTextureCanvas
ElseIf OptionButton51 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.PresetTextured msoTextureGreenMarble
ElseIf OptionButton52 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.PresetTextured msoTexturePapyrus
ElseIf OptionButton53 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.PresetTextured msoTextureWaterDroplets
ElseIf OptionButton54 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.PresetTextured msoTextureBouquet
ElseIf OptionButton55 = True Then
mySlides.Shapes.Range(Array(1, 2)).Fill _
.PresetTextured msoTextureDenim
End If
'ppPres.Slides(1).Delete 'à activer si l'on veut supprimer le nom, modifier pour le son (2)
'Titre de la présentation et nom du dernier auteur de modification du fichier
With ppPres.Slides.Add(Index:=1, Layout:=ppLayoutTitle).Shapes
.Title.TextFrame.TextRange = Me.TextBox4
.Placeholders(2).TextFrame.TextRange = "Créé par " & ThisWorkbook.BuiltinDocumentProperties("Last author").Value _
& vbNewLine & "Pour démarrer: cliquez." _
& vbNewLine & "Défilement automatique ensuite."
End With
' Diapo en continu jusqu'à echap
If CheckBox1 = True Then
With ppPres.SlideShowSettings
.LoopUntilStopped = msoTrue
.AdvanceMode = PowerPoint.PpSlideShowAdvanceMode.ppSlideShowUseSlideTimings
End With
End If
'Sonorisation
If TextBox2 = "" Then
Exit Sub
Else
If CheckBox2 = True Then
With ppPres.Slides(3).SlideShowTransition '(3)démarre à la 1ère image
.SoundEffect.ImportFromFile (Me.TextBox2) 'chemin fichier son
.LoopSoundUntilNext = msoTrue 'en boucle jusqu'au son suivant
End With
Else
Set mySlides = ppPres.Slides(3).SlideShowTransition '(3)démarre à la 1ère image
mySlides.SoundEffect.ImportFromFile (Me.TextBox2) 'chemin fichier son
End If
End If
End Sub
Private Sub CommandButton3_Click()
SupprimeLignesAvecTtexte ' on efface la liste
TextBox1 = "0 fichier"
End Sub
Private Sub CommandButton4_Click()
SupprimeLignesAvecTtexte ' on efface la liste
Unload UserForm1 'on ferme
End
End Sub
Private Sub CommandButton5_Click()
Dim LigneSelectionnée As Integer
'Cherche la ligne selectionnée
LigneSelectionnée = Me.ListBox1.ListIndex + 1
If Me.ListBox1.ListCount >= 0 And LigneSelectionnée > 0 Then
'Supprime la ligne
Feuil1.Rows(LigneSelectionnée).Delete
End If
LignesVisiblesSurFiltre 'On compte les fichiers
End Sub
Private Sub CommandButton6_Click()
choisir_color 'on appelle la boite couleur
Couleur 'on transforme en RGB
CommandButton6.BackColor = RGB(Label2, Label3, Label4) 'on met la couleur sur le bouton
OptionButton49 = True 'Sans texture
End Sub
Private Sub CommandButton7_Click()
'On cherche le chemin du fichier son
On Error Resume Next
Application.FileDialog(msoFileDialogOpen).Show
TextBox2 = Application.FileDialog(msoFileDialogFilePicker).SelectedItems(1)
CheckBox2.Visible = True 'en boucle
End Sub
Private Sub CommandButton8_Click()
choisir_degrade 'on appelle la boite couleur
Degrade 'on transforme en RGB
CommandButton8.BackColor = RGB(Label9, Label10, Label11) 'on met la couleur sur le bouton
OptionButton49 = True 'Sans texture
End Sub
Sub inverser()
'inverser les données d'une colonne et renvoyer le résultat dans une autre
Dim LCol$, LRow&, I&, ValCol
LCol = "A"
If LCol = "" Then Exit Sub
LRow = Range(LCol & Rows.Count).End(xlUp).Row
ValCol = Range(LCol & "1:" & LCol & LRow).Value
LCol = "A"
If LCol = "" Then Exit Sub
Application.ScreenUpdating = False
For I = UBound(ValCol) To LBound(ValCol) Step -1
Range(LCol & UBound(ValCol) - I + 1).Value = ValCol(I, 1)
Next I
End Sub
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
On Error Resume Next
With Me.ListBox1
If .ListIndex > -1 Then
var = .List(.ListIndex)
End If
End With
If var = "" Then
MsgBox (" Il n'y a aucune saisie!.")
Exit Sub
Else
'Ouvriravec
Dim Ret As Variant
Ret = ShellExecute(hwnd, "open", var, "", vbNullString, 1)
End If
End Sub
Private Sub MoveDown_Click()
Dim lCurrentListIndex As Long
Dim strRowSource As String
Dim strAddress As String
Dim strSheetName As String
With ListBox1
If .ListIndex < 0 Or .ListIndex = .ListCount - 1 Then Exit Sub
lCurrentListIndex = .ListIndex + 1
strRowSource = .RowSource
strAddress = Range(strRowSource).Address
strSheetName = Range(strRowSource).Parent.Name
.RowSource = vbNullString
With Range(strRowSource)
.Rows(lCurrentListIndex).Cut
.Rows(lCurrentListIndex + 2).Insert Shift:=xlDown
End With
'Sheets(strSheetName).Range(strAddress).Name = strRowSource
.RowSource = strRowSource
.Selected(lCurrentListIndex) = True
End With
End Sub
Private Sub MoveUp_Click()
Dim lCurrentListIndex As Long
Dim strRowSource As String
Dim strAddress As String
Dim strSheetName As String
With ListBox1
If .ListIndex < 1 Then Exit Sub
lCurrentListIndex = .ListIndex + 1
strRowSource = .RowSource
strAddress = Range(strRowSource).Address
strSheetName = Range(strRowSource).Parent.Name
.RowSource = vbNullString
With Range(strRowSource)
.Rows(lCurrentListIndex).Cut
.Rows(lCurrentListIndex - 1).Insert Shift:=xlDown
End With
'Sheets(strSheetName).Range(strAddress).Name = strRowSource
.RowSource = strRowSource
.Selected(lCurrentListIndex - 2) = True
End With
End Sub
Private Sub OptionButton56_Click()
CommandButton8.Visible = False
End Sub
Private Sub OptionButton57_Click()
CommandButton8.Visible = True
End Sub
Private Sub OptionButton58_Click()
CommandButton8.Visible = True
End Sub
Private Sub OptionButton59_Click()
CommandButton8.Visible = True
End Sub
Private Sub TextBox4_Change()
If TextBox4 = "" Then
TextBox4 = "Nouvel Album"
End If
End Sub
Private Sub UserForm_Initialize()
ListBox1.ControlTipText = "Double clic pour ouvrir" _
& vbNewLine & "Sélectionnez le dernier fichier pour créer un Diaporama" _
& vbNewLine & "Sélectionnez à chaque fois pour monter et descendre" _
& vbNewLine & "Sélectionnez Single pour supprimer"
OptionButton1 = True
OptionButton3 = True
OptionButton6 = True
OptionButton42 = True
OptionButton49 = True
OptionButton56 = True
Label2 = "255"
Label3 = "255"
Label4 = "255"
CommandButton6.BackColor = RGB(Label2, Label3, Label4) 'on met la couleur sur le bouton
CommandButton8.Visible = False
CheckBox2.Visible = False
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
'On empêche de fermer avec la croix
If CloseMode = vbFormControlMenu Then
MsgBox "Vous ne pouvez pas utiliser ce bouton de fermeture."
Cancel = True
End If
End Sub
Conclusion
Je remercie: http://frederic.sigonneau.free.fr/ pour ses modules
Historique
- 06 février 2009 14:08:11 :
- Correction d'un bug à l'ouverture d'un dossier si l'on n'ouvrez pas. Correction du comptage des fichiers qui ce réactualise au fur et à mesure des suppression.
- 07 février 2009 12:20:27 :
- On peut mettre un cadre autour des images à la couleur désirée.
- 07 février 2009 12:27:00 :
- Mauvais zip
- 09 février 2009 15:10:29 :
- Vous pouvez choisir un délai de transition et un fichier son. Une transition ainsi que sa vitesse est programmé.Consultez l'aide qui est diponible dans le MenuBar.
- 09 février 2009 15:15:41 :
- Le code ne s'était pas enregistré.
- 10 février 2009 09:35:38 :
- Toutes les transitions sont sur la feuille 3, je n'ai pas réussi à automatisé avec un combo cela ne fonctionne pas. J'ai supprimé certaines redondances.Le son est sur la dernière image, si une personne a une idée poue le mettre sur la 1ère diapo?
Merci à tous
- 10 février 2009 12:05:56 :
- C'est fait le son se déclenche à la 1ère image. J'ai mis un comboBox pour les transitions, mais il n'est pas opérationnel, si une personne avait une idée pour le faire fonctionner?
- 11 février 2009 16:57:49 :
- Transitions: vous pouvez choisir les effets, la vitesse et le délai comme avec PowerPoint. Je n'y arrivais pas avec les comboBox, j'ai donc mis des OptionButton.Cela fait un peu plus de code et de travail.
- 14 février 2009 12:30:49 :
- Motifs de texture sur les AR plans des images et un titre de présentation sur la 1ère Diapo.
- 14 février 2009 13:58:45 :
- Oubli de l'option "Sans motif de texture".
- 20 février 2009 16:05:10 :
- Ajout des textures en plus des motifs.
- 03 mars 2009 17:46:03 :
- Mise à l'échelle et centrage de l'image en mode portrait
Option: Diapo en continu jusquà échap
- 11 mars 2009 12:22:32 :
- Vous pouvez mettre la couleur sans cadre en mode portrait. Ajout de dégradé de couleurs que vous pouvez choisir. Son en boucle jusqu'au prochain son. Nom de l'auteur de la dernière modification de fichier en en-tête de présentation ( enregistrer le fichier Excel pour prendre effet)
- 18 mars 2009 18:45:18 :
- Suivant les conseils de BIGFISH_LEVRAI que je remercie, j'ai modifié l'ouverture des dossiers images en ajoutant un filtre pour les extensions "JPG et Gif" ce qui évite d'avoir des fichiers inutiles à supprimer.
- 23 mars 2009 12:41:28 :
- Nouveau module d'ouverture: filtre des sous-dossiers,cela évite des erreurs d'ouverture. Choix de l'arborescence: Complète ou "Mes Documents"
Sources du même auteur
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Powerpoint [ par patsonk ]
Salut,j'ai un probleme de debutant. je dois au fait inserer un slide d'un fichier powerpoint dans un autre fichier powerpointj'ai utiliser la fonction
automatiser powerpoint [ par breton51 ]
Bonjour, Je viens vers vous pour un petit éclaircissement, voila je voulais automatiser des diaporamas via un logiciel externe le but de ce logiciel
[Catégorie modifiée VB6 -> VBA] Macro entre excel et powerpoint [ par schevs10 ]
Bonjour, Voici mon sujet : j'ai un fichier excel avec pleins de tableau. Après la mise à jour des tableaux, je dois les coller sur un powerpoint. J
Comment enregistrer le contenu d'une ListBox dans un fichier txt ? [ par Sab ]
Merci pour votre aide
Comment faire pour ne pas avoir 2 même string dans une listbox ??? [ par [ReSTiTuTe] ]
Salut,Je vous explique, j'ouvre un fichier et je le met dans une liste box, après, je rajoute un autre fichier dans cette listbox, je voudrais savoir
comment mettre un fichier TXT dans une "listbox" [ par sebas ]
Je voudrait pouvoir lire dans ma list box le contenu d'un fichier txtmerci d'avence =:-)
Sauvegarder/Charger plusieurs listbox dans un même fichier [ par Chum ]
Comment proceder pour pouvoir sauvegarder dans un meme fichier plusieurs listbox ?Comment les charger ?Voila !
Comment enregistrer le contenu d'un ListBox Dans un Fichier xls (*.xls) [ par Patou ]
(Dans la première colnne de préférence)Merci pour vos réponses
ouvrir un diaporama Powerpoint (.pps) en VBA sous Excel [ par rvduclos ]
SalutEst-ce que quelqu'un à une idée pour lancer un diaporama sous Excel.Je ne comprends pas pourquoi un shell ne fonctionne pas ?Shell ("C:\WINDOWS\B
VB et XML [ par pierreII ]
Bonjour,J'ai réalisé un petit programme qui affiche du texte dans une ListBox, j'aimerais récupérer les éléments de cette ListBox, et les mettre dans
|
Derniers Blogs
XNA IS DEAD!XNA IS DEAD! par richardc
Depuis la semaine dernière (et grâce aux TechDays 2012), je me penche activement sur la nouvelle version de Windows, aka Windows 8. Vous me direz, il était temps puisque la première preview date de Septembre dernier.
OK. Remarquez, on n'en est qu'aux...
Cliquez pour lire la suite de l'article par richardc TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE)[HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE) par Gio
Je m'y prends un peu tard je sais, mais bon je suis développeur web et donc hyper fainéant ! Toujours dans le cadre des technologies émergentes, ici HTML5, parce qu'on aime HTML5 chez Wyg , nous seront présent, le vieux ( Aurélien V.) et moi, pour pr...
Cliquez pour lire la suite de l'article par Gio [WP7] DYNAMICALLY CHANGE STARTUP PAGE[WP7] DYNAMICALLY CHANGE STARTUP PAGE par KooKiz
Let's say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the 'NavigationPage' attribute in the manifest file. But the manifest cannot be modified once the applicatio...
Cliquez pour lire la suite de l'article par KooKiz
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|