我想在我的代码 VBA 中集成一条导入 XML 文件的指令。在else
我的条件分支中,我想添加一个命令来导入 XML 文件。您能给我一些建议吗(执行导入的 VBA 指令)?
Private Sub Commande0_Click()
Dim rep As String
rep = Dir("C:\Users\Toufik\Desktop\XML\*.*", vbDirectory)
Do While (rep <> "")
If (GetAttr("C:\Users\Toufik\Desktop\XML\" & rep) And vbDirectory) = vbDirectory Then
MsgBox "Directory " & rep
Else
MsgBox "File " & rep
End If
rep = Dir
Loop
End Sub