QP School

Full Version: Subroutines in VBA
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Description:

Subroutines (Subs) are blocks of code used to perform specific actions or tasks. 
They don't return any value. 
You call a subroutine by its name, and it executes the code within it.

Example:

Sub GreetUser()
    MsgBox "Hello! Welcome to Excel VBA."
End Sub