这个VBA代码是什么意思

时间:2016-10-24 13:39:15

标签: excel vba excel-vba

我这里有一部分VBA代码,

" -i"是什么意思?这里 ?

strCommand = Chr(34) & p_strPathConsole & Chr(34) & " -i " & Chr(34) & p_strPathDatabase & "\input.csv" & Chr(34)                         'Erstelle den Befehl zum Aufruf der Konsole
Set objShell = CreateObject("WScript.Shell")                                        'Erstelle ein Objekt für Shell
intShellReturn = objShell.Run(strCommand, 0, True)                                  'Konsolenaufruf und warte bis Rückgabewert existiert

提前感谢!

1 个答案:

答案 0 :(得分:0)

就像Tony Dallimore猜测的那样,它似乎是一个参数(一个在线命名的参数)," -i"可能代表"输入"附加到它的下一个字符串是输入文件的路径,它恰好是 csv 文件。

相关问题