These could be files the that you open every day in the morning (such as tracking sheet or timesheet), or some project related files that you need to open as soon as you start Excel. While you always have the option to open these files manually, it’s just one of those small time savings things you can do by automating the process. And this automation doesn’t need any VBA code or complex steps. It’s something you can do in a few seconds and keep saving time every day. Now there are two ways you can automatically open Excel files: In this tutorial, I will show you how to open specific Excel files when you start Excel as well as when you start Windows.
Automatically Open Files When You Start Excel
With Excel, you can customize the startup behavior to: When you start Excel, the default behavior is that it opens the start screen that shows the recent workbooks and templates (as shown below).
Note: This behavior of showing start screen on startup has become a default from Excel 2013 onwards From the start screen, you can choose to open a new workbook or you can choose from the existing templates in Excel (there are some useful templates on this list). Excel allows you to customize the startup behavior where you can specify if you want to open a new blank workbook (instead of the start screen), or a specific Excel file, or even all the files in a specific folder. So let’s quickly go through the different options and learn how you can customize Excel startup.
Open a Blank File when Excel Starts
When you enable this option, whenever you start Excel, it will open a new blank workbook. Here is how to enable this: Done! Now when you start Excel from now on, it will open a blank workbook and not show the start screen.
Open a Specific Workbook when Excel Starts
There is an XLStart folder in your system that determines which files to open when Excel starts. By default, this folder is empty, which is the reason that you see a start screen or a blank workbook when you start Excel. So, if you want a specific Excel workbook (or even multiple workbooks) to open when Excel starts, you need to place this workbook in this XLStart folder. And to do this, you first need to know where to find this XLStart folder. Below are the steps to get the path of the XLStart folder: Once you do all the above steps and place the file in Excel StartUp folder, this file would automatically open the next time you open Excel. Also, if you want multiple files to open, you can place all the files in this folder.
Overwriting Files in the Excel StartUp Folder
When you add a file to the Excel StartUp folder, you won’t be able to overwrite it.
Only those Excel files that are in the XLStart folder would open automatically when you start Excel. If there is any file in a sub-folder in the XLStart folder, those files would not open. Note that you can only place the Excel file formats in this folder. If you place a file that can not be read by Excel, it will not open and you’ll see an error (file format is not valid). If you have an Excel file that has a macro that runs when you open the file, the macro would run even when the file opens when it’s in the XLStart folder. In case you don’t want the macro to run, hold the SHIFT key and then open Excel.
This means that once you have added a file and you open Excel the next time, this file opens. And now if you make some changes to it and then try to save it, it will ask you to save it at a different location. You will see a prompt as shown below:
This works well as most of the time the files you add to the Excel startup folder would be templates/formats that you don’t want to change. So, when you work on a file that opened automatically and then want to save it, it will ask you to save it in some other location. But what if you want to save the changes in the same file (in Excel Startup folder) and want these changes to reflect the next time you open Excel. The trick would be to save a shortcut of the Excel file in the XLStart folder and not the Excel file itself.
Automatically Open Workbooks in a Specific Folder
In the above example, I showed you how to place an Excel file or multiple files in the XLStart folder. And when you open Excel, these files automatically open. But what if you want the files in a different folder to open automatically when Excel starts. This could be a project folder or template folder which has your everyday use files. Or this could be a folder on the network drive which has your current project files that you want to open whenever you open Excel. Excel allows you to specify a folder and it will automatically open all the files in the folder when you start Excel. Below are the steps to specify this alternate startup folder: That’s it! Now when you start Excel, it will automatically open all the files in this specified folder. A few things to know when using this method: I personally believe this can be a source of the issue and sometimes you may end up making changes that you don’t want. To prevent this, you can use create a VBA code that saves the file with a different name (maybe timestamp) in a different folder whenever you save it. Here is an example where a VBA code is used to create backup copies of the workbook whenever you save it.
Open Workbook/Worksheet Templates when Excel Starts
If there is a specific template that you need to work on every day, you can save that template and open it automatically whenever you start Excel. For example, if you have a template that has some pre-set font type/size, header/footer, company logo, row/column headers, etc., you can save this as a template and open it automatically when Excel starts. To do this, you need to save the Excel file as a template (covered in the steps below) and then put this template file in the XLStart folder or in the folder that you have specified as the alternate Startup folder. Below are the steps to save a workbook as a template: Note: In the above steps, I was not able to save the file directly to the XLStart folder. It showed a prompt as shown below saying I don’t have the permission to save in this folder. But I was able to save this template file in a regular folder and then copy/cut and paste in the XLStart folder. Alternately, you can also save this template file in the folder (and specify that folder to automatically open Excel files). Creating and using alternate folders is covered here.
Prevent Excel Files from Opening Automatically
If you open Excel and suddenly some workbook(s) open along with, you likely have one (or both) of the two below situation: So, if you want Excel to not open these files and resort to the default behavior of opening a blank workbook or the startup screen, you need to check the above two things. The first thing to check is the XLStart folder and remove any files in it. If you know how to locate the XLStart folder, great. Else follow the below steps to check if there are files in the XLStart Folder: This removes any files that automatically open when you start Excel because these were part of the XLStart folder. You can check if this resolves the issue (close all Excel workbooks and start Excel again). In case you still have files opening automatically, you likely have another folder specified as the Startup folder. Below are the steps to remove any folder as the default StartUp folder:
Open Excel Files Automatically When You Start Your Computer/Laptop
Just like we have an XLStart folder which automatically opens Excel files in it, there is a Startup folder for Windows as well. This folder is often used to open specific programs that you want to open automatically when your system starts – such as browser or Microsoft programs such as Excel or PowerPoint. You can also use this folder to open specific Excel files as soon as your computer starts. To do this, you need to copy the file (or the shortcut of that file) and place it in the startup folder. Below are the steps to open the startup folder in Windows 8 and 10: The above steps would open the Windows StartUp folder. Now place the Excel files or the shortcut to the Excel files that you want to open as soon as Windows starts. You can also achieve the same thing by adding the file in the XLSart folder or using an alternate folder (both covered above in this tutorial), and then add a shortcut to the Excel program in the Windows startup folder. This makes Excel start when you start Windows (because you have the Excel shortcut in the Windows startup folder), which in turn open the files in the XLStart folder. If you’re using Windows 7, you can find the instruction to open the startup folder here.
Open Related Excel Files When you Open a Specific Workbook (using VBA)
In the sections above, I covered how to open files when you start Excel. In this part of the tutorial, I will show you how to open all the related files when you open a specific Excel workbook. For example, if you’re working on a project, you can open the master tracker and it will simultaneously open some related files (such as the project status worksheet or cost-benefit analysis of the project or the project planning workbook). You get the idea! To do this, you can use a simple VBA code and specify the files that you want to open. Below is the code that will open a related file ‘Tracker.xlsx’ when you open the file in which this code resides: The above code uses the Workbook open event to run the code as soon as this workbook opens. You have to specify the exact path of the file (including the file extension). If you want multiple files to open, you can add multiple lines of code with each line specifying the location of the file. For example, the below code will open three files when you open the in which this code resides: Where to put this code? This code needs to be placed in the workbook, which when opened, would trigger opening the related workbook (the address of which are mentioned in the code). Below are the steps to place the code in the workbook: When you have placed the above code in the ‘ThisWorkbook’ code window, whenever this workbook is opened, this VBA code will get executed, which in turn will open the specified Excel files. You may also like the following Excel tutorials:
How to Recover Unsaved Excel Files How to Clean Data in Excel Combine Data from Multiple Workbooks in Excel (using Power Query) How to Create a Data Entry Form in Excel Split Each Excel Sheet Into Separate Files How to Turn On AutoSave in Excel Microsoft Excel Won’t Open; How to Fix it! How to Open Excel Files Using VBA (Examples)
Then Select the Macro And Press Enter to Run As usual, an excellent article. Well done, I appreciate your effort to teach so many people, about hidden gems of Excel. One question for you: is there any possibility to open Excel, without displaying the splash screen, and also without opening an empty workbook ? If I remember well, this was possible on earlier versions of Excel, but I am not sure. I use Excel 2016. Thank you.