1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| Sub Macro1()
'
' Macro1 Macro
' Macro par cc
' Cherche le fichier
Dim wb As Workbook
For Each wb In Workbooks
If UCase(wb.Name) Like "JVK*" Then wb.Activate: Exit For
Next wb
'
' enregistrement
' pas d'alerte
Application.DisplayAlerts = False
'repertoire
ChDir _
"P:\"
ActiveWorkbook.SaveAs Filename:= _
"P:\JVK_19022013.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
'Retour feuille principale
Windows("recap.xls").Activate
'retablissemnt alerte
Application.DisplayAlerts = False
MsgBox " C'est bon, on continue, maintenant appuyer sur MAJ jet 1"
End Sub |
Partager