- Katılım
- 11 Şubat 2023
- Mesajlar
- 48
- Excel Vers. ve Dili
- c,python,ardunio
- Altın Üyelik Bitiş Tarihi
- 11-02-2024
Hocam verdiğiniz yanıt macOS için mi windows için mi?C#:Sub Kaydet() Dim wb As Workbook Dim ws As Worksheet Dim strFileName As String Dim strFolderName As String Dim strDate As String Dim i As Integer strFolderName = ThisWorkbook.Path & "\YEDEK\" If Dir(strFolderName, vbDirectory) = "" Then MkDir strFolderName End If strDate = Format(Date, "dd.mm.yyyy") Set wb = ThisWorkbook For i = 5 To wb.Worksheets.Count Set ws = wb.Worksheets(i) strFileName = strFolderName & ws.Name & "-" & strDate & ".xlsx" ws.Copy Application.DisplayAlerts = False ActiveWorkbook.SaveAs Filename:=strFileName, FileFormat:=51 ActiveWorkbook.Close Application.DisplayAlerts = True Next i End Sub