Sei sulla pagina 1di 9

Class on macro

1. Macro
2. Customize general setting
3. Customize the save
4. Language Setting
5. Excel list

Contact
Step 1 First, enable 'Developer' menu in
Excel 20XX. To do the same, click File
Options.
Step 2 Click Customize the Ribbon tab and
check 'Developer'. Click 'OK'.
Step 3 The 'Developer' ribbon appears in the
menu bar.
Step 4 Click the 'Visual Basic' button to open
the VBA Editor.
Step 5 Start scripting by adding a button.
Click Insert Select the button.
macro
Step 6 Perform a right-click and choose 'properties'.
Step 7 Edit the name and caption as shown in the following
screenshot.
Step 8 Now double-click the button and the sub-procedure
outline will be displayed as shown in the following screenshot.
Private Sub say_helloworld_Click() MsgBox "Hi" End Sub

macro
Click on the File tab and choose Excel Options.
In the General group, navigate to the section titled When
creating new workbooks.
You can change the number of sheets created in a new
workbook by changing the Include this many sheets option.
Click OK after making your selections.
Close and re-open Excel.

Customize the general setting


File format
Click the File tab and choose Options (under Help). In Excel
2007, click the Office button and then click Excel Options.
Choose Save in the left pane.
In the Save Workbooks section, choose Excel 97-2003
Workbook (*.xls) from the Save Files In This Format drop-
down, as shown in Figure H.
Click OK.

Customize the save


File format
Click the File tab and choose Options (under Help). In Excel
2007, click the Office button and then click Excel Options.
Choose Save in the left pane.
In the Save Workbooks section, choose Excel 97-2003
Workbook (*.xls) from the Save Files In This Format drop-
down, as shown in Figure H.
Click OK.

Customize the save


Launch an Office 2010 application (Word, Excel or any other).
Go to File menu and click Options to open settings box. In the
left pane, click Language tab to see list of installed languages.
...
Next, under Choose display language, select your new
language and click Set as default button. ...
Click Ok button. ...
You are done!

Language Setting
Create the list in cells A1:A4. Similarly, you can enter the items in a
single row, such as A1:D1.
Select cell E3. (You can position the drop-down list in most any cell
or even multiple cells.)
Choose Validation from the Data menu.
Choose List from the Allow option's drop-down list. (See, they're
everywhere.)
Click the Source control and drag to highlight the cells A1:A4.
Alternately, simply enter the reference (=$A$1:$A$4).
Make sure the In-Cell Dropdown option is checked. If you uncheck
this option, Excel still forces users to enter only list values (A1:A4),
but it won't present a drop-down list.
Click OK.

Excel list

Potrebbero piacerti anche