How to save Excel file contains VBA Macros code
When using advanced Excel, not only complex Excel functions, but also add ins, or Excel code VBA Macros are used by a lot of people, especially VBA Macros. With the VBA Macros code, users can set repetitive actions from simple to complex that we do not need to manipulate from the beginning.
However, when you save the Excel file using the VBA Macros code in the usual way, the VBA Macros will only be used in one calculation and set the value only, cannot be reused if the user has needs apply to other files. The code used in the file automatically disappears when you save the file as usual. So, does backing up Excel files contain VBA Macros code so they work again when opening the file? The following article of Network Administrator will guide you how to do it.
- How to break VBA password in Excel
- MS Excel 2003 - Lesson 8: Excel Macro - Automate complex tasks
- How to send email from Excel spreadsheet with VBA script
- How to install VBA in Excel
Instructions for saving Excel file VBA Macros
Step 1:
Take, for example, a flash text editor on Excel that uses VBA code.
If the user saves the Excel file that contains the VBA code in the usual way with the default format * .xlsx, the following message will be displayed. The content of this message can be understood if you save this file, you cannot save the contents in Macro Excel. If you press Yes to save, the Macro code will be deleted. If you press No, cancel the save command.
At the interface of the file, click the Office icon and select Save As .
Step 2:
Switch to the folder view, choose where to save the file and then in the Type Save section select Excel Macros-Enabled Workbook from the list but not the Excel Worbook format as default. Click Save to save the Excel file with Macros.
If you receive the message as shown below, press Ok to continue.
Step 3:
Open the folder to save Excel file will see 2 files with the same name but different.The file contains VBA Macros with an exclamation icon as shown.
The format of the file containing VBA Macros is * .xlms and the original Excel file is in * .xlsx format.
Step 4:
Now open the file containing the VBA Macros, if the content has VBA Macros code that is not available and has the following interface, click Options .
Click on Enable this content to display the content containing the Macros VBA code on the Excel document, then click Ok below.
The result of using Macros VBA code on Excel has been displayed again.
The operation to save Excel files containing VBA code Macros will be different when you save the Excel file normally. The default format for saving Excel files is * .xlsx and * .xls, and the format when saving an Excel file contains a VBA code for * .xlsm or xlsb with an exclamation mark next to the Excel file icon for easy identification. . When you reopen the file, users can still use VBA, edit the values if desired.
I wish you all success!
You should read it
- MS Excel 2007 - Lesson 7: Create Macros in Excel 2007
- The easiest way to Use Macros in Excel
- Instructions for creating Macros in Excel
- What is a macro in Excel? How to create and run a Macro in Excel
- How to enable macros on Excel
- How to turn on, turn off, delete Macro in Excel
- Microsoft Excel test P5
- A complete guide to Excel 2016 (Part 4): How to store and share spreadsheets
May be interested
- Microsoft disables Excel 4.0 macros by default to protect usersexcel's macro feature is very useful, but it is often taken advantage of by bad guys to perform cyberattacks.
- How to troubleshoot macros in Excel not workingexcel macros are a powerful feature designed to automate repetitive tasks, saving you both time and effort. however, it is not uncommon to experience problems while macros are enabled, which can be extremely annoying, preventing you from streamlining your workflow.
- How to enable and disable macros in Excelthe following article will show you how to enable and disable macros in excel 2007, 2010, 2013 and 2016.
- How to turn on, turn off, delete Macro in Excelhow to turn on, turn off, delete macro in excel. macros help you save more time processing data in excel, bringing greater efficiency at work. if you are new to macros in excel, then turning on, off, and deleting macros is not much
- How to turn on and off macros in Microsoft Office 365when you have to do a task more than once, you can save time by using macros to automate the task. however, not all macros are created equal, some contain malicious code. here's how to enable (or disable) macros in microsoft office 365.
- Create and use automated macros in Word 2010many people may not know about the benefits of macros when running automatically in word 2010. these are word commands stored in a file and executed when used, like a small program.
- How to create Macros in Word 2007macros are advanced features, which can speed up editing or formatting that you can execute regularly in a word document. they record the sequence of choices you choose so that a series of actions can be completed in one step.
- How to Protect VBA Codemicrosoft's visual basic for applications (vba) is the standard language for writing programs to automate functions and tasks in microsoft office. understand how to protect vba code so others can't sabotage or steal your macros. open the...
- Forgot password protected Excel file, what should you do?suppose in case if there is an excel file containing extremely important data and because you want to keep your data secret, you create a password for the excel file to ensure its safety and data protection. file. however, for a long time not to use, forgetting passwords is also common.
- Attack analysis uses Excel 4.0 macros to disguiseon october 18, 2018, 360 threat intelligence center for the first time recorded an example of an attack using excel 4.0 macro to spread the trojan remote control imminent monitor.