Excel Vba Debug Assert

[Solved] Excel Vba Debug Assert | Swift - Code Explorer | yomemimo.com
Question : excel vba debug.assert

Answered by : vastemonde

' Test will pause execution on false assert only on debug mode
#Const DebugMode = True
Sub TestMe() Dim iVar As Integer iVar = -1 #If DebugMode Then Debug.Assert iVar >= 0 ' False -> Pause MsgBox "Debug Mode", vbExclamation #Else MsgBox "Production Mode", vbInformation #End If
End Sub

Source : | Last Update : Sat, 30 Jan 21

Answers related to excel vba debug assert

Code Explorer Popular Question For Swift