QP School

Full Version: Running VBA code when a workbook is being opened
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Description:

You can write code that runs when a workbook is opened.

Example:

Private Sub Workbook_Open()
    MsgBox "Welcome to this workbook!"
End Sub