Sub Statement - Visual Basic | Microsoft Learn
https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/sub-statement
WebSep 15, 2021 · The declaration context for a sub procedure must, therefore, be a class, a structure, a module, or an interface and can't be a source file, a namespace, a procedure, or a block. For more information, see Declaration Contexts and Default Access Levels. Sub procedures default to public access.
DA: 25 PA: 83 MOZ Rank: 65