Understanding what response codes come back from MsgBox

前端 未结 8 1726
春和景丽
春和景丽 2021-02-19 08:32

I\'m very new to programming and I\'m just starting to learn VBA with excel. I came across on this website and did the examples here but I have question about this code:

<
8条回答
  •  情歌与酒
    2021-02-19 09:25

    This link is for VBScript, but I think the return codes should be the same: MsgBox Function Reference

    The Return Codes tell you which button was clicked:

    1   OK
    2   Cancel
    3   Abort
    4   Retry
    5   Ignore
    6   Yes
    7   No
    

提交回复
热议问题