hi

i know this should be in the API section but i will get more responce here, i know how to make a standard beep, but i found in windows api how to make specfic beeps, here is what i have got so far

Code:
Private Declare Function MessageBeep Lib "user32" (ByVal wType As Long) As Long

Private Sub Command1_Click()
MB_ICONEXCLAMATION As Long

End Sub
but it doesn't work it comes up with an error about statment invalid outside block, what am i doing wrong, i am new to api so please be gentle, thanks for your co-operation