Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where are Excel Macros Stored and Run?

0
Posted

Where are Excel Macros Stored and Run?

0

VBA code is typed in the VBA Editor in what are called modules. A module resembles a Word document in both organization and typing. You type commands in these modules then run them to control Microsoft Excel. The VBA modules themselves are organized in what is called a VBA project. A VBA project is defined as a collection of modules and other programming elements. When a new workbook file is created in Microsoft Excel, a new VBA project is automatically created and associated with that workbook. A workbook can contain only 1 VBA project. You add VBA modules, code and other elements to a VBA project when you need them. You run your macros from the workbook they were created in. You need workbook open in Excel to run its code.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.