- Сообщения
- 217
- Реакции
- 0
Помогите сделать паузу в полторы секунды в макросе:
Код:
Sub CopyLogo()
Dim d As Document
Dim s As Shape
Dim Lg As Layer
Set s = ActiveShape
For Each d In Application.Documents
For Each Lg In d.ActivePage.Layers
If Lg.Name = "Logo" Then
Lg.Activate
d.ActiveLayer.Editable = True
Lg.Delete
d.ActivePage.CreateLayer ("Logo")
d.ActiveLayer.Paste
d.ActiveLayer.Editable = False
d.Save
d.ActivePage.Layers("General").Activate
End If
Next
Next
End Sub