If Service("NetDDEdsdm", "stop") = 0 Then
'ok
stp = MsgBox("Attempted to stop Network DDE DSDM service", vbOKOnly, "Stop Service")
Exit Sub
ElseIf Service("NetDDEdsdm", "stop") = 1 Then
stp = MsgBox("Could not stop Network DDE DSDM service", vbOKOnly, "Stop Service")
Exit Sub
Else
'problem
stp2 = MsgBox("Already in progress or not supported.", vbOKOnly, "Stop Service")
Exit Sub
End If