Set wsh = VBA.CreateObject("WScript.Shell")
    'wsh.Run strExePath & " g", vbHide, True
    Set wshOut = wsh.exec(strExePath & " g").StdOut
    
    While Not wshOut.AtEndOfStream
        sLine = wshOut.ReadLine
        Debug.Print sLine
    Wend

 

run可以隐藏窗体

exec可以获取dos打印输出值

貌似没有即能隐藏窗体又能获取打印结果的办法。

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-07-04
  • 2021-09-07
猜你喜欢
  • 2021-11-16
  • 2021-08-12
  • 2022-03-10
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
相关资源
相似解决方案