Is scoping broken in VBA?

Say you have this code in a module called Module1:

Option Explicit

Private Type TSomething
Foo As Integer
Bar As Integer
End Type

Public Something As TSomething
In equivalent C# code if …

VBA Search in Outlook

I have this code to search in my folder.
I do have a e-mail with the “sketch” subject, but VBA is not finding it (it goes to the ELSE clause)

Can anybody tell what is wrong ?

Set olApp = GetObject(,…

Exit a while loop in VBS/VBA

Is there a method of exiting/breaking a while in VBS/VBA?

Following code won’t work as intended:

num = 0
while (num < 10) if (status = "Fail") then exit while end if num = ...