Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to create pop up message box when opening an Excel file?

In certain case, you may want a message box always popup to remind you what you need to do first when you open a specific workbook, this can help you remember to do the most important thing in your daily work. And this article, I will talk about how to create a pop up message box when opening an Excel file.

Create a pop up message box when opening Excel file with VBA code

Automatically open some specific workbooks when launch Excel next time


arrow blue right bubble Create a pop up message box when opening Excel file with VBA code


You can create a VBA code to make a message box popped out when you open the specific workbook, please do as follows:

1. Hold Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window.

2. In the Microsoft Visual Basic for Applications window, double click ThisWorkbook from the Project-VBAProject pane, then copy and paste the below VBA code into the Module window, see screenshot:

Note: If the Project-VBAProject pane is hidden, click View > Project Explorer to display it.

VBA code: Create a pop up message box when opening Excel file:

Private Sub Workbook_Open()
MsgBox "Send this file to xxx"
End Sub

doc message box opening 1

3. Then close the code window, and save this workbook as Excel Macro-Enabled Workbook format, please click File > Save As, and in the Save As window, select Excel Macro-Enabled Workbook from Save as type list, see screenshot:

doc message box opening 2

4. Now, a security warning message is displayed at the top of the sheet table first time when you open this file, please click Enable Content button to activate the VBA code, see screenshot:

doc message box opening 3

5. After activating the VBA code, a message box is popped out at once. See screenshot:

doc message box opening 4

Notes:

1. You can change the text message in the code to any other word you need;

2. The security warning message will not displayed after the first opening. So when you launch this file next time, the message box will be popped out directly.


arrow blue right bubble Automatically open some specific workbooks when launch Excel next time

It is easy and time-saving for you to open multiple workbooks that you always use when launching any Excel file, Kutools for Excel’s Auto Open Those Workbooks Next Time feature can help you deal with this job quickly and comfortably.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

After installing Kutools for Excel, please do with following steps:

1. Open the workbooks that you want to open together next time automatically.

2. Then click Enterprise > Workbook > Auto Open Those Workbook Next Time, see screenshot:

doc message box opening 5

3. In the Auto Open Those Workbook Next Time dialog box, please click Select all to check all the workbooks that you want to auto open next time when you launching an Excel file, then click Ok to exit the dialog, see screenshot:

doc message box opening 6

4. And now, when you launch an Excel file, all the workbooks you selected are opening at the same time.

Note: To cancel this operation, you just need to unselect all the workbooks or remove or clear the workbooks in the Auto Open Those Workbook Next Time dialog box.

Free Download Kutools for Excel Now!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Nika · 2 years ago
    Need pop-up msg for when cell value reaches 5%up and automatically notification comes..What formula will written on VBA ????