# VBA

V

【VBA】遍历文件夹下所有的文件夹名称

Option Explicit Sub 提取文件夹名称() Dim fs As Object Dim f As Object Dim fd As Object Dim n As Integer ...

肉松 笔记 2021-08-09
V

【VBA】遍历目录

Option Explicit Sub dirtst() Dim f As String, i As Long f = Dir("C:\Users...

肉松 笔记 2020-11-02
V

【VBA】读取文本文件代码

Sub inputtxt() Dim s As String, i As Long Open "C:\Users\i\Desktop\xxx.txt" F...

肉松 笔记 2019-11-15
V

【VBA】excel中 #N/A = Error 2042

excel中的常见的单元格错误“#N/A”,在VBA中此内容识别 “Error 2042”在写比对判断语句时要注意区分当单元格中显示#N/A时可以使变量值=“Error 2042”将其筛选出,使...

肉松 笔记 2019-10-27
V

【VBA】判断某单元格为空,删除所在行,光标上移

Sub xuanzexx() Dim i As Integer For i = 135 To 4 Step -1 If Cells(i, 11) = "" Then...

肉松 笔记 2019-10-27