Wiley 978-0-470-59159-8 Ficha de datos

Busca en linea o descarga Ficha de datos para Manuales de software Wiley 978-0-470-59159-8. Wiley Excel Programming Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 24
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
2
1
2
4
2
3
Introducing Excel
Programming
A
s you probably know, Microsoft Excel is an
electronic worksheet you can use for a variety of
purposes, including the following: maintain lists;
perform mathematical, financial, and statistical
calculations; create charts; analyze your data with
PivotTables; locate data; find trends in your data; and
present your data to others.
This book is about automating the tasks you perform in
Excel by using Visual Basic for Applications (VBA). You
can use VBA to automate those repetitive tasks you
perform frequently. For example, if the layout of your
monthly report rarely changes, you can use VBA to set up
your report each month.
VBA is a programming language; however, you do not
have to be a programmer to automate the tasks you
perform in Excel. You can also automate a task by using
the macro recorder to create a macro. A macro is a
recording of the steps you want to automate. You just
click a button to turn on the macro recorder and begin
performing the steps as you normally would. Excel records
each step and creates the VBA code. When you finish, you
click the Stop Record button. When you select your macro
in the Macro dialog box and then click the Run button,
Excel plays back the steps you recorded. For example, if
you record the steps necessary to set up your monthly
report, all you have to do each month thereafter is click a
button and Excel automatically sets up your report.
With VBA, you can do more than just create macros. You
can use VBA to edit macros, create new functions, create
custom applications, and create add-ins. For these tasks,
you must learn the VBA programming language. This
book teaches VBA. It is based on Office 2010. Code you
write for Office 2010 may not be compatible with earlier
versions of Excel.
Introducing Excel Programming
1 Click the Developer tab.
Note: See the section “Introducing Macros” to learn how
to display the Developer tab.
Use the options in the Code group to automate
your tasks.
2 Click either of these Record Macro buttons to
record a macro.
Note: See the section “Record a Macro” for more details.
3 Click Macros to run a macro.
Note: See the section “Run a Macro” for more details.
Use the options in the Controls group to add
check boxes, fields, and other form controls
to your worksheet.
Use the options in the XML group to work
with XML.
4 Click Visual Basic or press Alt+F11.
Excel moves to the Visual Basic for
Applications Editor (VBE).
03_591598-ch01.indd 203_591598-ch01.indd 2 6/11/10 1:41 PM6/11/10 1:41 PM
COPYRIGHTED MATERIAL
Vista de pagina 0
1 2 3 4 5 6 ... 23 24

Indice de contenidos

Pagina 1 - COPYRIGHTED MATERIAL

212423Introducing Excel ProgrammingAs you probably know, Microsoft Excel is an electronic worksheet you can use for a variety of purposes, including t

Pagina 2

11Chapter 1: Using Macros and Form Controls6745If you have Macro Security enabled, Excel displays the Trust Bar below the Ribbon when you open a workb

Pagina 3 - Introducing

121234 The Macro dialog box appears.4 If your macro does not appear in the Macro dialog box, click the down arrow and then select the workbook that

Pagina 4 - 6 Click OK

13Chapter 1: Using Macros and Form Controls65Excel differentiates between macros listed in the Macro dialog box by placing the name of the workbook th

Pagina 5 - Security

14624537 The Macro Options dialog box appears.4 Type the desired shortcut key. Press Shift as you type to assign an uppercase key.5 Type a descrip

Pagina 6 - Signature

15Chapter 1: Using Macros and Form Controls1If you do not use a macro shortcut frequently, it is easy to forget the keyboard shortcut you assigned to

Pagina 7 - Record a Macro

166112453 The Excel Options dialog box appears.2 Click the down arrow and then select Macros.3 Click the down arrow and then select the workbook in

Pagina 8

17Chapter 1: Using Macros and Form Controls8709You can also assign a macro to a custom Ribbon tab. Right-click the Microsoft Office Ribbon. A menu app

Pagina 9 - Signature to a Macro

184132 The Unhide dialog box appears.3 Click the workbook you want to unhide.4 Click OK. Excel unhides the workbook. You are now in the workbook

Pagina 10

19Chapter 1: Using Macros and Form Controls423There are two ways to create a macro. One way is to use the macro recorder to record the steps needed to

Pagina 11 - Run a Macro

20235414 Click and drag the mouse pointer to create the control.5 Click and drag the handles on the sides and corners to adjust the size.1 Click th

Pagina 12 - 6 Click Run

356You can also use Microsoft Visual Studio Tools for the Microsoft Office System (Visual Studio) to develop programs for Microsoft Office products. W

Pagina 13 - Keyboard Shortcut

21Chapter 1: Using Macros and Form Controls67You can add the controls listed in the following table to your worksheets.CONTROL CONTROL NAME DESCRIPTIO

Pagina 14 - Launch a Keyboard Shortcut

222345167 The Format Object dialog box appears.3 Click the Control tab. The available fields depend on the control type. This example uses a combo

Pagina 15 - Quick Access Toolbar

23Chapter 1: Using Macros and Form Controls88When working with a value selected from a list box or combo box control, you may want to use the value in

Pagina 16

241423 The Record Macro dialog box appears.4 Click OK.5 Record your macro.Note: See section “Record a Macro” to learn how to record a macro.1 Righ

Pagina 17 - Unhide a Workbook

25Chapter 1: Using Macros and Form Controls6To assign a macro to a button, create the macro, and then click the Developer tab. Click Insert in the Con

Pagina 18 - Delete a Macro

4123 The Excel Options dialog box appears.3 Click Customize Ribbon.1 Click the File tab. A menu appears.2 Click Options.Introducing MacrosYou can

Pagina 19 - Add a Form Control

5Chapter 1: Using Macros and Form Controls546Because of problems with macro viruses, by default Excel disables all macros when you open a workbook. Yo

Pagina 20

63412 The Trust Center dialog box appears.3 Click a macro security setting ( changes to ).4 Click OK. Excel changes your macro security setting.1

Pagina 21 - Assign Values to

7Chapter 1: Using Macros and Form Controls1625437 The Create Digital Certificate dialog box appears.6 Type the name you want to give your certificat

Pagina 22 - Example:

87123456 The Record Macro dialog box appears.3 Type the name you want to give your macro.4 Type the shortcut key you want to assign to your macro.

Pagina 23 - Add a Macro to

9Chapter 1: Using Macros and Form Controls890A macro you create in Excel can have a relative, an absolute, or a mixed reference. If you use a relative

Pagina 24

102331 The Visual Basic Editor appears.3 Click Tools ➔ Digital Signature.1 Click the Developer tab.Note: See the section “Introducing Macros” to le

Comentarios a estos manuales

Sin comentarios