ShellExecuteEx in VBA

前端 未结 3 1544
粉色の甜心
粉色の甜心 2020-12-20 05:05

I understand how to use ShellExecute in VBA (for my Outlook macros) but I\'m looking to be able to use ShellExecuteEx to wait for the executed program in my script. Does an

3条回答
  •  没有蜡笔的小新
    2020-12-20 05:41

    If I am not mistaken, you need to set the SEE_MASK_NOASYNC bit in the fMask parameter.

    Const SEE_MASK_NOASYNC As Long = &h0&
    With Prop    
        .fMask = &HC Or SEE_MASK_NOASYNC
    End With
    

    Edit

    Hmmm, I'm having trouble getting it to work too. Have you considered just GetFileInformationByHandle?

提交回复
热议问题