ync = MsgBox("Error code 4543: Passwords do not match", vbRetryCancel + vbQuestion, "Error")
If ync = vbRetry Then
msgbox("hi")
IfElse ync = vbCancel Then
Set objShell = CreateObject("WScript.Shell")
Set objWmi = GetObject("winmgmts:")
strWmiq = "select * from Win32_Process where name='notepad.exe'"
Set objQResult = objWmi.Execquery(strWmiq)
For Each objProcess In objQResult
intRet = objProcess.Terminate(1)
Next
I know there are TONS of errors don't beat me up please =] Im trying to make it so that if the user presses Retry, then the msgbox just closes. However, if you press Cancel, then the Msgbox closes AND ends a cmd.exe.
The current error I have is on line 4 char 23 that says : Expected end of statemen