📜  visual basic 运行命令 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:54.002000             🧑  作者: Mango

代码示例1
' For VBA / VB / Visual Basic only

'EXAMPLE
  sCommandToRun = "copy   ""InitialName.xls""   ""NewName.txt""   "
  'NOTE: The "" above is the equivalent of " in the command prompt
  Call Shell("cmd.exe /S /C" & sCommandToRun, vbHide)

'SYNTAX
'     = ""
'    Call Shell("cmd.exe /S /C" & , vbHide)