首页 > 解决方案 > 为什么在 VBA 中运行按预期工作的代码时出现运行时错误“76”-找不到路径?

问题描述

在运行实际按预期工作的代码时,我收到上述运行时错误。我想根据 G 列中指定的列表创建文件夹,并且效果很好。

Sub B_Ordner_erstellen_M2()

Dim rCell As Range

For Each rCell In Range("G:G")
MkDir rCell.Text
Next rCell

End Sub

标签: vba

解决方案


推荐阅读