1. Sưu tầm đồ cổ cho đã thích.Tại sao phải làm như vậy bạn?




Yêu cầu của bạn khá lạ.Các bác ơi có cách nào chuyển file excel đuôi XLSX sang XLS hàng loạt tầm nghìn file hoặc nhiều hơn mà không cần ấn Save as không ạ?
Sub DoiTenFile()
    Dim Folder As String
    Dim File As Variant
    Dim fd As FileDialog
    Dim Dem As Integer
    
    Set fd = Application.FileDialog(msoFileDialogOpen)
    With fd
        .Title = "Ban hay chon cac file can doi ten .xlsx thanh .xls"
        .Filters.Clear
        .Filters.Add "Excel files", "*.xlsx"
        .AllowMultiSelect = True
        If .Show = True Then
            For Each File In .SelectedItems
                Name File As Left(File, Len(File) - 5) & ".xls"
                Dem = Dem + 1
            Next File
        MsgBox "Da doi ten xong cho " & Dem & " file Excel."
        End If
    End With
End Sub