用VBA代碼循環錶格當前目録下的所有Excel文件中修改日期爲最新的文件名
- 2020-05-01 08:00:00
- zstmtony 原創
- 2864
用VBA代碼循環錶格當前目録下的所有Excel文件中修改日期爲最新的文件名
Dim strPath As String Dim strFile As String Dim datLast As Date Dim strLastFile As String Set fso = CreateObject("Scripting.FileSystemObject") Path = CurrentProject.Path & "" strFile = Dir(Path & "*.xls") strLastFile = "" datLast = #1/1/1900# Do While strFile <> "" Set f = fso.Getfile(Path & strFile) If f.DateLastModified > datLast Then datLast = f.DateLastModified: strLastFile = strFile strFile = Dir Loop Msgbox "最新的文件" & strFile
Access Activex第三方控件
- Activex控件或Dll 在某些電腦無法正常註冊的解決辦法(regsvr32註冊時卡住)
- office使用部分控件時提示“您沒有使用該ActiveX控件許可的問題”的解決方法
- RTF文件(富文本格式)的一些解析
- Access樹控件(treeview) 64位Office下齣現橫曏滾動條不會自動定位的解決辦法
- Access中國樹控件 在win10電腦 節點行間距太小的解決辦法
- EXCEL 2019 64位版(Office 2019 64位)早就支持64位Treeview 樹控件 ListView列錶等64位MSCOMMCTL.OCX控件下載
- VBA或VB6調用WebService(直接Post方式)併解析返迴的XML
文章分類
聯繫我們
聯繫人: | 王先生 |
---|---|
Email: | 18449932@qq.com |
QQ: | 18449932 |
微博: | officecn01 |