Sub Macro1()
Sub Macro1()
Dim cheminBureau, fichier As String
Dim objShell, objFolder, objFolderItem As Object
Dim x, nbFeuilles As Integer
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(&H10)
Set objFolderItem = objFolder.Self
cheminBureau = objFolderItem.Path
nbFeuilles = Sheets.Count
For x = 1 To nbFeuilles
Sheets(x).Activate
fichier = Sheets(x).Name & ".xls"
' casse respectée
If VBA.Left(fichier, 1) = "f" Or VBA.Left(fichier, 1) = "R" Then
With ActiveWorkbook
.SaveAs Filename:=cheminBureau & "\" & fichier
End With
End If
Next x
ActiveWorkbook.Close
End Sub
End Sub