Sub Copie_Feuille_BIS()
Dim Nom_SVG, strPath$, NewWBK As Workbook, AWBK As Workbook:: Set AWBK = ThisWorkbook
strPath$ = ThisWorkbook.Path & "\"
Cells(1).CurrentRegion.Copy
Set NewWBK = Workbooks.Add(1)
With NewWBK.Sheets(1).Cells(1)
.PasteSpecial xlPasteColumnWidths: .PasteSpecial xlPasteAllUsingSourceTheme
End With
Application.CutCopyMode = False: Application.DisplayAlerts = False
Nom_SVG = _
CStr(InputBox("Merci de saisir le nom de la copie, svp.", "Backup XLSX", _
"Copie_" & WBK_Name_Only(AWBK) & Format(Now, "_hhmmss"".xlsx""")))
NewWBK.SaveAs strPath & Nom_SVG, 51
NewWBK.Close True
End Sub
Function WBK_Name_Only(wb As Workbook) As String
WBK_Name_Only = ""
If InStr(wb.Name, ".") > 0 Then
WBK_Name_Only = Left(wb.Name, InStr(wb.Name, ".") - 1)
End If
End Function