What is VB?

What is Visual Basic (VB)?

VB, VBA, VBScript, VB.NET, etc is a programming language where the code looks similar to this…

Dim sum
sum = 0
For i = 1 to 999
    If (i Mod 3 = 0) OR (i Mod 5 = 0) Then
        sum = sum + i
    End If
MsgBox sum

Depending on the context of how you are running the code (windows script host or .NET framework or Excel macros), it gets called different things and there are some heavy nuances to how you write it. But I consider it one fundamentally same thing with minor differences across the versions. Basic has been around forever, and AppleBASIC was the first language I ever played with in the 80s. VB is kind of dated, though, and I do prefer to use C# in places where I can get away with it. But you often can sneak vbscript in places where you can’t get C# to play nice, so it’s a good skill to have.