phamvandunghp84
Thành viên thường trực




- Tham gia
- 5/3/20
- Bài viết
- 241
- Được thích
- 12
em tìm được code này để xem thời gian lưu file lần cuối của chính file đó, vậy giờ muốn xem thời gian lưu file cuối cùng của một file khác ( không mở file này) thì làm thế nào ạ?
Sub xemthoigiantaofile()
Sheets("sheet3").Range("A2").Value = Format(ThisWorkbook.BuiltinDocumentProperties("Creation Date"), "short date")
Sheets("sheet3").Range("B2").Value = Format(ThisWorkbook.BuiltinDocumentProperties("Last Save Time"), "short date")
End Sub
Sub xemthoigiantaofile()
Sheets("sheet3").Range("A2").Value = Format(ThisWorkbook.BuiltinDocumentProperties("Creation Date"), "short date")
Sheets("sheet3").Range("B2").Value = Format(ThisWorkbook.BuiltinDocumentProperties("Last Save Time"), "short date")
End Sub