Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
Microsoft Excel is a spreadsheet application used to create lists, perform
calculations, and analyze numbers. It can be used in business,
economics, or accounting, etc.
While the default features of Microsoft Excel should be enough in most scenarios, in some cases
you will want more complex functionality to perform advanced operations. To make this possible,
Microsoft Excel is accompanied by Microsoft Visual Basic, a programming environment that allows
you to use the Visual Basic language to enhance the usefulness and functionality of a spreadsheet.
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
1/16
24/07/13
As you can see, the menu of the Office Button allows you to perform the routine Windows
operations of a regular application, including creating a new document, opening an existing file, or
saving a document, etc. If you right-click the office button, you would get a short menu:
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
2/16
24/07/13
To hide the Quick Access toolbar, you can right-click it and click Remove Quick Access Toolbar. If
you position the mouse on a button, a tool tip would appear.
In the beginning, the Quick Access toolbar displays only three buttons: Save, Undo, and Redo. If
you want more buttons than that, you can right-click the Quick Access toolbar and click Customize
Quick Access Toolbar... This would display the Excel Options dialog box:
To add a button to the Quick Access toolbar, on the left list of Add, click an option and click Add.
After making the selections, click OK.
To remove a button from the Quick Access toolbar, right-click it on the Quick Access toolbar and
click Remove From Quick Access Toolbar.
The role of this button is to manage some aspects of the top section of the Microsoft Excel
interface, including deciding what buttons to display on the Quick Access toolbar. For example,
instead of using the Customize Quick Access Toolbar menu item as we saw previously, you can
click an option from that menu and its corresponding button would be added to the Quick Access
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
3/16
24/07/13
click an option from that menu and its corresponding button would be added to the Quick Access
toolbar. If the options on the menu are nor enough, you can click either Customize Quick Access
Toolbar or More Commands... This would open the Excel Options dialog box.
The main or middle area of the top section displays the name of the application: Microsoft Excel.
You can right-click the title bar to display a menu that is managed by the operating system.
On the right side of the title bar, there are three system buttons that allow you to minimize,
maximize, restore, or close Microsoft Access.
Under the title bar, there is another bar with a Help button on the right side.
The Ribbon
Introduction
Under the title bar, Microsoft Excel displays the Ribbon:
By default, the Ribbon displays completely in the top section of Microsoft Excel under the title bar.
One option is to show it the way the main menu appeared in previous versions of Microsoft Excel.
To do this:
Right-click the Office Button, the Quick Access toolbar, or the Ribbon itself, and click Minimize
the Ribbon
Click or right-click the button on the right side of the Quick Access toolbar:
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
4/16
24/07/13
To put them back to the default locations, right-click the Office Button, the Quick Access toolbar,
or the Ribbon, and click Show Quick Access Toolbar Above the Ribbon.
To access a tab, you can press its corresponding letter on the keyboard. For example, when
the access keys display, if you press Home, the Home tab would display
If your mouse has a wheel, you can position the mouse anywhere on the ribbon, and role the
wheel (on the mouse). If you role the wheel down, the next tab on the right side would be
selected. If you role the wheel up, the previous tab on the left side would be selected. You can
keep rolling the wheel until the desired tab is selected
To identify each tab of the Ribbon, we will refer to them by their names.
You can also use context sensitive help in some cases to get information about an item.
You can add a button from a section of the Ribbon to the Quick Access toolbar. To do that, rightclick the button on the Ribbon and click Add to Quick Access Toolbar:
Remember that, to remove a button from the Quick Access toolbar, you can right-click it on the
Quick Access toolbar and click Remove From Quick Access Toolbar.
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
5/16
24/07/13
That button is used to display an intermediary dialog box for some actions.
In this case, when you need to access an object, you can still click it or click its arrow. If the item
is supposed to have many objects, a new window may appear and display those objects:
From this:
To this:
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
6/16
24/07/13
You can hide or show the Formula Bar anytime. To do this, on the Ribbon, click View. In the
Show/Hide section:
To hide the Formula Bar, remove the check mark on the Formula Bar check box
To show the Formula Bar, check the Formula Bar check box
The Cells
The main area of Microsoft Excel is made of cells. A cell is the intersection of a column and a row:
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
7/16
24/07/13
A cell is identified by its name and every cell has a name. By default, Microsoft Excel appends the
name of a row to the name of a column to identify a cell. Therefore, the top-left cell is named A1.
You can check the name of the cell in the Name Box.
In the lower right section of the main window, there is a horizontal scroll bar that allows you to
scroll left and right if your worksheet has more items than can be displayed all at once:
Sometimes the horizontal scroll bar will appear too long or too narrow for you. If you want, you can
narrow or enlarge it. To do this, click and drag the button on the left side of the horizontal scroll
bar:
By default, Microsoft Excel provides three worksheets to start with. You can work with any of them
and switch to another at any time by clicking its tab.
8/16
24/07/13
On the left side of the worksheet tabs, there are four navigation buttons:
If you happen to use a lot of worksheets or the worksheet names are using too much space, which
would result in some worksheets being hidden under the horizontal scroll bar, you can use the
navigation buttons to move from one worksheet to another.
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
9/16
24/07/13
On the Quick Access Toolbar, you can click the Save button . Then, in the Save As dialog
box, click the arrow of the Save As Type combo box and select a format of your choice
There are other things you can do in the Save As dialog box:
Opening a File
The files you use could be created by you or someone else. They could be residing on your
computer, on another medium, or on a network. Once one of them is accessible, you can open it in
your application.
You can open a document either by double-clicking its icon in Windows Explorer, in My Computer,
from the Find Files Or Folders window, in My Network Places, or by locating it in the Open dialog
box. To access the open dialog box, on the main menu, click File -> Open... You can also click the
Open button on the Standard toolbar.
A shortcut to call the Open dialog box is Ctrl + O.
Files Properties
Every file has some characteristics, attributes, and features that make it unique; these are its
properties. You can access a file's properties from three main areas on the computer:
If the file is saved on the desktop and/or it has a shortcut on the desktop, if you open My
Computer, Windows Explorer, or the folder (as a window) where the file is stored, right-click the
file and click Properties. If the file were saved on the desktop, you would see only some of its
properties, the most you can do there is to assign a Read-Only attribute. In My Computer and
Windows Explorer, you will be able to change the file's properties.
Before opening a file or while in the Open dialog box, you can view some of the file's properties
although you won't be able to change them.
When the file is opened in Microsoft Excel, you can click the Office Button, position the mouse
on Prepare, and click Properties. This would display some of the most common attributes of the
file:
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
10/16
24/07/13
To change an item, you can click its text box and edit or replace the content. To get more
options, you can click the Document Properties button and click Advanced Properties...
A file's properties are used for various reasons. For example, you can find out how much size the
file is using, where it is located (the hosting drive and/or folder), who created the file, or who was
the last person to access or modify it. The Properties dialog box is also a good place to leave
messages to other users of the same file, about anything, whether you work as a team or you
simply want to make yourself and other people aware of a particular issue regarding the file.
On the Record Macro dialog box, (do something or) simply click OK. Then, in the Macros section of
the Ribbon, click the arrow under the Macros button and click Stop Recording. Now, to open
Microsoft Visual Basic, in the Macros section of the Ribbon, click either the Macros button itself or
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
11/16
24/07/13
Microsoft Visual Basic, in the Macros section of the Ribbon, click either the Macros button itself or
click the arrow under it and click View Macros:
In the combo box, select the name of the macro you created (if you have only one, it should be
selected already) and click Edit.
There is probably the best way for a programmer like you to launch Microsoft Visual Basic. Click the
Office Button and click Excel Options. In the Excel Options dialog box, click the Show Developer tab
in the Ribbon check box and click OK. The Ribbon would become equipped with a new tab:
From the Developer tab of the Ribbon, to launch Microsoft Visual Basic, click the Visual Basic
button.
3. Click OK
4. In the Code section of the Developer tab of the Ribbon, to launch Microsoft Visual Basic, click
Visual Basic:
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
12/16
24/07/13
You can move the Project Explorer to another section of the interface. To do this, click its title bar
and drag it away it from there:
To put the window back where it was previously, you can double-click its title bar.
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
13/16
24/07/13
The Properties Window shows the characteristics of an object that is selected. Like any other
window, to move the Properties window from its position, drag its title bar:
The main area of Microsoft Visual Basic uses a gray background. This area is gray because, in
reality, Microsoft Visual Basic is a multiple document interface (MDI) that can be used to display
various windows at the same time. At times, this gray area will be occupied with other windows.
Modules
A module is a blank window that resembles a piece of paper on which you write code. When you
use Microsoft Excel and work on a document, a default module is automatically allocated for it,
whether you use it or not. You can also create a module that is independent of any worksheet.
To create a module, on the main menu of Visual Basic, you can click Insert -> Module.
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
14/16
24/07/13
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
15/16
24/07/13
3. To return to Microsoft Excel, on the Standard toolbar of Visual Basic, click the View Microsoft
Excel button
Home
www.functionx.com/vbaexcel/fundamentals/Lesson1.htm
16/16