an easy way is to see if there is an if word or an equals sign, which also clarified the usage.
so
msgbox("Hello World") just displays a string, with an OK button to close the box
but
result = msgbox("Do you want to do this",vbyesno)
asks the question and gives you buttons labelled yes and no to pick from, and stores the answer in a variable called result
and
if msgbox("Do you want to do this",vbyesno) = vbno then
dosomething
else
dosomethingelse
end if
asks the same question but immediately reacts to the button click without storing the result