JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,687
- Office Version
- 365
- Platform
- Windows
What's the difference between Stop and Debug.Assert in VBA code?
Thanks
Thanks
Debug.Assert conditionally suspends code execution, Stop suspends code execution.
No it means you can't use Debug.Assert in VBA.
There is no Assert method for the Debug object in VBA.
Dim I As Long
For I = 1 To 10
Debug.Print I <> 5
Debug.Assert I <> 5
Next I