Understanding what response codes come back from MsgBox

前端 未结 8 1745
春和景丽
春和景丽 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:19

    These are return value from MsgBox(). The author should have used their symbolic value instead to make the program more readable:

    vbYes   6
    vbNo    7
    

    See this MSDN article for more info

提交回复
热议问题