2020年5月14日
摘要: 在使用Excel VBA的过程中,如何判断某个Excel文件是否打开? 示例: Dim sFileName as String Dim i as IntegerDim bOpenFlag as booleanbOpenFlag=FalsesFileName="aaa.xlsx"for i in Wo 阅读全文
posted @ 2020-05-14 15:01 天道酬勤2016 阅读(2370) 评论(0) 推荐(0)
摘要: 从指定的带有路径和文件名的字符串里提取文件名:Dim sFile as string Dim sFileName as string Dim sPath as stringsFile="D:\xxx\xxx\xxx\aa.xlsx"sFileName=Split(sFile,"\")(Ubound( 阅读全文
posted @ 2020-05-14 14:43 天道酬勤2016 阅读(1741) 评论(0) 推荐(0)