PDA

View Full Version : Visual Basic



iLogan
04-12-2010, 03:15 PM
Hey, I've got some VB on a powerpoint, its a button and when you click it, it says ERROR 3448! The password you have entered is incorrect! Please try again. (Its for a movie thing)

anyway, is there a way to make it, when you press retry to go to the next slide?


Private Sub CommandButton1_Click()
MsgBox "ERROR 3448! The password you have entered is incorrect! Please try again!", 21, "ClinkTrueTM Systems - Error"
End Sub

http://uploadir.com/u/846705e3

Stephen
04-12-2010, 03:55 PM
if you do something like


Private Sub CommandButton1_Click()
example = MsgBox "ERROR 3448! The password you have entered is incorrect! Please try again!", 21, "ClinkTrueTM Systems - Error"
End Sub

then you can use


if example = vbRetry then
code here for when retry is clicked
end if

sorry havent used vb in ages so can't tell you completely

Want to hide these adverts? Register an account for free!