- 帖子
- 561
- 主題
- 160
- 精華
- 0
- 積分
- 725
- 點名
- 0
- 作業系統
- WINDOWS
- 軟體版本
- xp
- 閱讀權限
- 50
- 性別
- 男
- 來自
- 桃園
- 註冊時間
- 2014-9-10
- 最後登錄
- 2026-2-12
  
|
2#
發表於 2018-9-18 16:16
| 只看該作者
DEAR ALL
但是我不知道擁有者的語法, 測試 .Dateowner或 .DateUserName都錯誤
目前我只知道檔案建立日期語法如下:
Dim FSO As Object, Xa As String, Ax As Integer
Set FSO = CreateObject("Scripting.FileSystemObject")
Xa = Sheet1.[D1048576].End(xlUp).Row
For Ax = 8 To Xa
If Sheet1.Cells(Ax, 3) <> "" Then
Sheet1.Cells(Ax, 6) = FSO.GetFile(Sheet1.Cells(Ax, 4)).DateCreated
' Set FSO = Nothing
End If
Next
但是我不知道擁有者的語法, 測試 .Dateowner或 .DateUserName都錯誤 |
|