hi,

i have the following code to shut down the computer but when i click on no it still shuts down the computer


msgbox "do you want to shut down the computer", vbYesNo
if vbYes then
CODE TO SHUT DOWN COMPUTER
end if



please help

Merlin ?