0% found this document useful (0 votes)
126 views1 page

VBA Word

VBA (Visual Basic for Applications) allows unleashing the power of Excel by automating tasks through macros. However, the macro recorder is flawed and does not always produce workable code. The developer tab contains tools for recording, running, and editing macros. Macros can be stored and run in files with the .xlsm or .xlsb extension but not the default .xlsx format. Saving files as .xlsm avoids corruption issues when storing macros.

Uploaded by

LeavMenghuy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views1 page

VBA Word

VBA (Visual Basic for Applications) allows unleashing the power of Excel by automating tasks through macros. However, the macro recorder is flawed and does not always produce workable code. The developer tab contains tools for recording, running, and editing macros. Macros can be stored and run in files with the .xlsm or .xlsb extension but not the default .xlsx format. Saving files as .xlsm avoids corruption issues when storing macros.

Uploaded by

LeavMenghuy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Chapter 1 Unleashing the Power of Excel with VBA

The Power of Excel

VBA: Visual Basic for Application (VBA)

Barriers to Entry

1. Excel’s macro recorder is flawed and does not produce workable code for model.
2. Programming language as BASIC, the syntax of VBA is horribly frustrating.

The Macro Recorder Does Not Work!

Lotus 1-2-3 compared with MS VBA programming language

Knowing Your Tools: The Developer Tab

- Visual Basic- Opens the Visual Basic Editor


- Macros- Display the Macro dialog, where you can choose to run or edit a macro from the list
of macros.
- Record Macro- Begins the process of recording a macro.
- Use Relative References- Toggles between using relative ( Move down 3 cells) or absolute
(cell A4)
- Macro Security- Accesses the Trust Center.

Add-ins : provide icons for managing regular add-ins and COM add-ins.

Understanding Which File Types Allow Macros

- Excel Workbook (.xlsx): Macro cannot be stored in files with an .xlsx extension.
- Excel Macro-Enabled Workbook (xlsm): Allowed.
- Excel Binary Workbook (.xlsb)
- Excel 97-2003 Workbook (.xls)

To avoid having corruption while saving : Save it to (xlsm)

File-Option-Save-Save file format-Select .xlsm extension

You might also like