Understanding what response codes come back from MsgBox

前端 未结 8 1738
春和景丽
春和景丽 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-19 09:12

    The 6 and 7 are hard coded values that hold a special meaning. The 'MsgBox("Click Yes...")' call will return a number that will let your code determine what the user did with the message box and you can then use conditionals (your IF statements) to decide what to do next.

    A full list of these special values can found in the MSDN documentation here:

    http://msdn.microsoft.com/en-us/library/139z2azd(VS.80).aspx

提交回复
热议问题