Caninge
XLDnaute Accro
Bonjour à tous
J'ai réalisé une macro avec l'enregistreur de macro.
Explication: je copie une photo dans une feuille et je la colle dans une autre feuille.
Sur cette photo je mets des bulles aves un texte dans chacune.
Si j' exécute cette macro tout se fait en une seconde bien sur.
Ma question:
Comment mettre un temps d'arrêt de 5 secondes entre chaque opération.
voici ma macro
Sub Dessin()
Sheets("Feuil1").Select
ActiveSheet.Shapes("Picture 6").Select
Selection.Copy
Sheets("Feuil2").Select
Range("B3").Select
ActiveSheet.Paste
Range("A1").Select
'Temps d'arrêt de 5 secondes
ActiveSheet.Shapes.AddShape(msoShapeRoundedRectangularCallout, 144.75, 44.25, _
38.25, 30.75).Select
Selection.Characters.Text = "salut"
With Selection.Characters(Start:=1, Length:=5).Font
.Name = "Arial"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
'Temps d'arrêt de 5 secondes
ActiveSheet.Shapes.AddShape(msoShapeOvalCallout, 210#, 34.5, 41.25, 29.25). _
Select
Selection.Characters.Text = "bonjour"
With Selection.Characters(Start:=1, Length:=7).Font
.Name = "Arial"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Range("A1").Select
End Sub
Merci de bien vouloir me dépanner.
J'ai réalisé une macro avec l'enregistreur de macro.
Explication: je copie une photo dans une feuille et je la colle dans une autre feuille.
Sur cette photo je mets des bulles aves un texte dans chacune.
Si j' exécute cette macro tout se fait en une seconde bien sur.
Ma question:
Comment mettre un temps d'arrêt de 5 secondes entre chaque opération.
voici ma macro
Sub Dessin()
Sheets("Feuil1").Select
ActiveSheet.Shapes("Picture 6").Select
Selection.Copy
Sheets("Feuil2").Select
Range("B3").Select
ActiveSheet.Paste
Range("A1").Select
'Temps d'arrêt de 5 secondes
ActiveSheet.Shapes.AddShape(msoShapeRoundedRectangularCallout, 144.75, 44.25, _
38.25, 30.75).Select
Selection.Characters.Text = "salut"
With Selection.Characters(Start:=1, Length:=5).Font
.Name = "Arial"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
'Temps d'arrêt de 5 secondes
ActiveSheet.Shapes.AddShape(msoShapeOvalCallout, 210#, 34.5, 41.25, 29.25). _
Select
Selection.Characters.Text = "bonjour"
With Selection.Characters(Start:=1, Length:=7).Font
.Name = "Arial"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Range("A1").Select
End Sub
Merci de bien vouloir me dépanner.