QP School
Running VBA code when a workbook is being opened - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: Excel VBA Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=48)
+--- Thread: Running VBA code when a workbook is being opened (/showthread.php?tid=5227)



Running VBA code when a workbook is being opened - Qomplainerz - 07-27-2023

Description:

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

Example:

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