SlideShare a Scribd company logo
Tutorial 8:
Developing an Excel Application

Microsoft Office Excel 2010
          ®              ®
Visual Overview                      XP




New Perspectives on Microsoft Excel 2010        2
Excel Application and Defined NamesXP




New Perspectives on Microsoft Excel 2010      3
Planning an Excel Application                     XP


      • A spreadsheet written or tailored to meet
        specific needs
      • The interface helps others use it
      • Typically includes reports and charts, a data
        entry area, a custom interface, instructions,
        and documentation




New Perspectives on Microsoft Excel 2010                     4
Naming Cells and Ranges                      XP


      • Use a defined name to:
        – Assign a meaningful, descriptive name to a
          cell or range
        – Quickly navigate within a workbook to the
          cell with the defined name
        – Create a more descriptive formula




New Perspectives on Microsoft Excel 2010                5
Creating Defined Names                         XP


      • Must begin with a letter or an underscore
      • Can include letters, numbers, periods and
        underscores, but not other symbols or spaces
      • Cannot be a valid cell address, function name,
        or reserved word
      • Can include as many as 255 characters
         – Short, meaningful names (5–15 characters)
           are more practical
      • Are not case sensitive
New Perspectives on Microsoft Excel 2010                  6
Creating Defined Names                       XP


      • Use the Name box to create defined names




New Perspectives on Microsoft Excel 2010                7
Creating Defined Names                         XP


      • Use the Selection dialog box to create defined
        names by selection




New Perspectives on Microsoft Excel 2010                  8
Creating Defined Names                      XP


      • Use the Name Manager dialog box to edit and
        delete defined names




New Perspectives on Microsoft Excel 2010               9
Creating Defined Names                    XP


      • Use the Paste Names Command to generate a
        list of names
      • Paste defined names in the Documentation
        worksheet after the workbook is complete




New Perspectives on Microsoft Excel 2010             10
Using Defined Names in FormulasXP
      • Descriptive formulas are simpler to enter and
        understand
         – If a range reference is used rather than a
           defined name, defined names do not
           automatically replace the range reference
           in the formula




New Perspectives on Microsoft Excel 2010                11
Adding Defined Names to Existing                XP
      Formulas
      • Defined names are not automatically
        substituted for cell addresses in a formula
      • Replace cell addresses in existing formulas
        with their defined names to make formulas
        more understandable




New Perspectives on Microsoft Excel 2010                   12
Visual Overview                      XP




New Perspectives on Microsoft Excel 2010        13
Data Validation and Protection       XP




New Perspectives on Microsoft Excel 2010        14
Validating Data Entry                                  XP

      • Ensures that correct data is entered and stored in a
        worksheet
         – Protects cells with formulas from accidental
           deletion
         – Reduces repetitious keystrokes and mouse clicks
      • Each validation rule defines criteria for data that can
        be stored in a cell or range
      • Use Data Validation dialog box to specify validation
        criteria, input message, and error alert for the active
        cell

New Perspectives on Microsoft Excel 2010                          15
Specifying Validation Criteria                  XP


      • When you create a validation rule, specify the
        type of data allowed as well as a list or range
        of acceptable values (validation criteria)




New Perspectives on Microsoft Excel 2010                   16
Specifying Validation Criteria       XP




New Perspectives on Microsoft Excel 2010        17
Creating an Input Message                     XP


      • Reduces the chance of a data-entry error
      • Provides additional information about type of
        data allowed for the cell
      • Appears as a ScreenTip next to selected cell




New Perspectives on Microsoft Excel 2010                 18
Creating an Error Alert Style and             XP
      Message
      • An error alert determines what happens after
        a user attempts to make an invalid entry in a
        cell that has a validation rule defined
      • Tree error alert styles: Stop, Warning, and
        Information




New Perspectives on Microsoft Excel 2010                 19
Creating a List Validation Rule                      XP


      • Restricts a cell to accept only entries that are
        on a list you create
      • Create the list of valid entries in the Data
        Validation dialog box, or use a list of valid
        entries in a single column or row




New Perspectives on Microsoft Excel 2010                        20
Protecting a Worksheet and a                     XP
      Workbook
      • Reduces data-entry errors by limiting access
        to certain parts of the workbook
      • Prevents users from changing cell contents,
        workbook organization, or viewing formulas




New Perspectives on Microsoft Excel 2010                    21
Locking and Unlocking Cells                    XP


      • A cell’s locked property determines whether
        changes can be made to that cell
         – Locked property has no impact as long as
           worksheet is unprotected; after worksheet
           is protected, locked property is in control
         – Default: Locked property is turned on for
           each cell, and worksheet protection is
           turned off
      • Common practice: Protect the worksheet, but
        leave some cells unlocked
New Perspectives on Microsoft Excel 2010                  22
Protecting a Worksheet                           XP


      • Specify the actions still available to users




      • A protected worksheet can be unprotected
        – Require a password to turn off protection
          only if you are concerned that users might
          make changes
New Perspectives on Microsoft Excel 2010                    23
Protecting a Workbook                            XP


      • Keeps a worksheet from being modified
         – Protecting the structure prohibits
           renaming, deleting, hiding, or inserting
           worksheets
         – Protecting the windows prohibits moving,
           resizing, closing, or hiding parts of the
           window
      • Default: Protect only the
        structure of the workbook, not
        the windows used to display it
New Perspectives on Microsoft Excel 2010                    24
Unprotecting a Worksheet and a                  XP
      Workbook
      • A worksheet must be unprotected to edit its
        contents
      • A workbook must be unprotected to change
        its structure




New Perspectives on Microsoft Excel 2010                   25
Inserting Comments                             XP


      • Use comments to:
        – Explain contents of a particular cell
        – Provide instructions to users
        – Share ideas and notes from several users
          collaborating on a project




New Perspectives on Microsoft Excel 2010                  26
Visual Overview                      XP




New Perspectives on Microsoft Excel 2010        27
Working with Macros                  XP




New Perspectives on Microsoft Excel 2010        28
Automating Tasks with Macros                     XP


      • Macros perform repetitive tasks consistently
        and faster than you can
      • After the macro is created and tested, tasks
        are done exactly the same way each time
      • Use Developer tab to create and run macros




New Perspectives on Microsoft Excel 2010                    29
Protecting Against Macro Viruses XP
      • Virus
         – Computer program designed to copy itself
           into other programs with the intention of
           causing mischief or harm
      • Macro viruses
         – Type of virus that uses a program’s own
           macro programming language to distribute
           the virus
      • Microsoft Office 2010 provides several
        options for levels of security
New Perspectives on Microsoft Excel 2010               30
Macro Security Settings                     XP


      • Control what Excel will do about macros when
        the workbook is opened




New Perspectives on Microsoft Excel 2010               31
Macro Security Settings                            XP


      • Set macro security in the Trust Center




      • Use Trusted Locations to define file paths for
        files considered trustworthy
      • Use a digital signature to identify the author
        of a workbook that contains macros
New Perspectives on Microsoft Excel 2010                      32
Recording a Macro                            XP


      • For simple macros, use the macro recorder to
        record keystrokes and mouse actions as they
        are performed




      • For sophisticated macros, enter a series of
        commands in the Visual Basic for Applications
        (VBA) programming language
New Perspectives on Microsoft Excel 2010                33
Running a Macro                                 XP


      • Either use the specified shortcut key or select
        the macro in the Macro dialog box




New Perspectives on Microsoft Excel 2010                   34
Options for Fixing Macro Errors             XP


      • Rerecord the macro using the same macro
        name
      • Delete the recorded macro; record it again
      • Run the macro one step at a time to locate
        the problem; use one of the previous methods
        to correct the problem




New Perspectives on Microsoft Excel 2010               35
Working with the Visual Basic Editor XP
      • Components
         – Code window contains the VBA code
         – Project Explorer window displays a treelike
           diagram consisting of every open workbook
         – Menu bar contains menus of commands
           used to edit, debug, and run VBA
           statements
      • Accessed through Macro dialog box or Visual
        Basic button in Code group on Developer tab
New Perspectives on Microsoft Excel 2010                 36
Working with the Visual Basic Editor XP




New Perspectives on Microsoft Excel 2010        37
Understanding the Structure of             XP
      Macros
      • Each macro (sub procedure) begins with Sub
        followed by the name of the sub procedure
        and a set of parentheses (the arguments)
      • Comments about the macro follow the
        statement and do not include any actions
      • The body of the macro follows the comments
      • End Sub statement indicates the end of the
        sub procedure


New Perspectives on Microsoft Excel 2010              38
Understanding the Structure of              XP
      Macros
      • A Code window can contain several sub
        procedures
      • Each procedure is separated from the others
        by SubProcedureName() statement at the
        beginning, and End Sub statement at the end
      • Sub procedures are organized into modules




New Perspectives on Microsoft Excel 2010               39
Editing a Macro Using the Visual Basic
                                           XP
      Editor
      • The Visual Basic Editor provides tools to assist
        in writing error-free code
      • As you type a command, the editor provides
        pop-up windows and text to help you insert
        the correct code




New Perspectives on Microsoft Excel 2010                   40
Creating Macro Buttons                           XP


      • A macro can be assigned to a button placed
        directly in the worksheet
      • Clicking a button (with a descriptive label) can
        be more intuitive and simpler than trying to
        remember combinations of keystrokes
      • Form Controls




New Perspectives on Microsoft Excel 2010                    41
Creating Macro Buttons               XP




New Perspectives on Microsoft Excel 2010        42
Saving Workbooks with Macros                    XP


      • Default Excel Workbook format is a macro-
        free workbook (.xlsx file extension)
      • To save the workbook with the macros, save
        the file as a macro-enabled workbook (.xlsm
        file extension)




New Perspectives on Microsoft Excel 2010                   43
Opening a Workbook with Macros
                                   XP


      • First time a workbook opens, a Security
        Warning appears in Message Bar providing
        the option to:
         – Enable macros so they can be run, or
         – Open the workbook with the macros
           disabled




New Perspectives on Microsoft Excel 2010           44
Customizing the Ribbon                        XP


      • Minimize the Ribbon
        – Makes more space for a worksheet
        – Only Quick Access Toolbar and tab names
          display



      • Create new tabs and groups
      • Hide tabs or commands
      • Rename tabs or commands
New Perspectives on Microsoft Excel 2010                 45

More Related Content

What's hot

Tutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot ChartsTutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot Charts
cios135
 
MS Excel
MS ExcelMS Excel
MS Excel
Waqas Ghuman
 
Excel 2010 Unit B PPT
Excel 2010 Unit B PPTExcel 2010 Unit B PPT
Excel 2010 Unit B PPT
okmomwalking
 
Chapter.03
Chapter.03Chapter.03
Defining Table Relationships
Defining Table RelationshipsDefining Table Relationships
Defining Table Relationships
IIUI
 
Chapter.02
Chapter.02Chapter.02
2016 ms excel_bm
2016 ms excel_bm2016 ms excel_bm
2016 ms excel_bm
Rajesh Math
 
Chapter.01
Chapter.01Chapter.01
Tutorial Excel
Tutorial ExcelTutorial Excel
Tutorial Excel
soleicita
 
Ms Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopMs Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 Workshop
CA Aditya Singhal
 
Excel Lesson 1: Excel Basics
Excel Lesson 1: Excel BasicsExcel Lesson 1: Excel Basics
Excel Lesson 1: Excel Basics
Novus Business and IT Training Program
 
Quicktip excel
Quicktip excelQuicktip excel
Quicktip excel
Sachin Singh
 
Excel 2007 Unit J
Excel 2007 Unit JExcel 2007 Unit J
Excel 2007 Unit J
Raja Waseem Akhtar
 
Data Analytics Using MS Excel
Data Analytics Using MS ExcelData Analytics Using MS Excel
Data Analytics Using MS Excel
Rajesh Math
 
Advanced excel 2010 & 2013 updated Terrabiz
Advanced excel 2010 & 2013 updated TerrabizAdvanced excel 2010 & 2013 updated Terrabiz
Advanced excel 2010 & 2013 updated Terrabiz
Ahmed Yasir Khan
 
Excel 2010 Unit C PPT
Excel 2010 Unit C PPTExcel 2010 Unit C PPT
Excel 2010 Unit C PPT
okmomwalking
 
Management productivity tools1
Management productivity tools1Management productivity tools1
Management productivity tools1
Hari Krishnan
 
Microsoft Excel
Microsoft ExcelMicrosoft Excel
Microsoft Excel
CarloPMarasigan
 
Excel2002
Excel2002Excel2002
Excel2002
pprinik
 
Excel Training
Excel TrainingExcel Training
Excel Training
Joshua Flewelling
 

What's hot (20)

Tutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot ChartsTutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot Charts
 
MS Excel
MS ExcelMS Excel
MS Excel
 
Excel 2010 Unit B PPT
Excel 2010 Unit B PPTExcel 2010 Unit B PPT
Excel 2010 Unit B PPT
 
Chapter.03
Chapter.03Chapter.03
Chapter.03
 
Defining Table Relationships
Defining Table RelationshipsDefining Table Relationships
Defining Table Relationships
 
Chapter.02
Chapter.02Chapter.02
Chapter.02
 
2016 ms excel_bm
2016 ms excel_bm2016 ms excel_bm
2016 ms excel_bm
 
Chapter.01
Chapter.01Chapter.01
Chapter.01
 
Tutorial Excel
Tutorial ExcelTutorial Excel
Tutorial Excel
 
Ms Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopMs Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 Workshop
 
Excel Lesson 1: Excel Basics
Excel Lesson 1: Excel BasicsExcel Lesson 1: Excel Basics
Excel Lesson 1: Excel Basics
 
Quicktip excel
Quicktip excelQuicktip excel
Quicktip excel
 
Excel 2007 Unit J
Excel 2007 Unit JExcel 2007 Unit J
Excel 2007 Unit J
 
Data Analytics Using MS Excel
Data Analytics Using MS ExcelData Analytics Using MS Excel
Data Analytics Using MS Excel
 
Advanced excel 2010 & 2013 updated Terrabiz
Advanced excel 2010 & 2013 updated TerrabizAdvanced excel 2010 & 2013 updated Terrabiz
Advanced excel 2010 & 2013 updated Terrabiz
 
Excel 2010 Unit C PPT
Excel 2010 Unit C PPTExcel 2010 Unit C PPT
Excel 2010 Unit C PPT
 
Management productivity tools1
Management productivity tools1Management productivity tools1
Management productivity tools1
 
Microsoft Excel
Microsoft ExcelMicrosoft Excel
Microsoft Excel
 
Excel2002
Excel2002Excel2002
Excel2002
 
Excel Training
Excel TrainingExcel Training
Excel Training
 

Viewers also liked

Teaching Excel
Teaching ExcelTeaching Excel
Teaching Excel
sam ran
 
MS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATION
Mridul Bansal
 
Excel vba macro programing
Excel vba macro programingExcel vba macro programing
Excel vba macro programing
University of Narotama
 
Vba Class Level 1
Vba Class Level 1Vba Class Level 1
Vba Class Level 1
Ben Miu CIM® FCSI A+
 
Microsoft excel 2010 useful formula & functions
Microsoft excel 2010   useful formula & functionsMicrosoft excel 2010   useful formula & functions
Microsoft excel 2010 useful formula & functions
NR Computer Learning Center
 
Excel ppt
Excel pptExcel ppt
Introduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosIntroduction To Excel 2007 Macros
Introduction To Excel 2007 Macros
Excel
 
Microsoft 2007 Basics
Microsoft 2007 BasicsMicrosoft 2007 Basics
Microsoft 2007 Basics
Julie Van Noy
 
Essential technical skills
Essential technical skillsEssential technical skills
Essential technical skills
Mani Sarkar
 
Data Mining with Excel 2010 and PowerPivot
Data Mining with Excel 2010 and PowerPivotData Mining with Excel 2010 and PowerPivot
Data Mining with Excel 2010 and PowerPivot
Mark Tabladillo
 
12 Tracking Progress on Tasks and Assignments
12 Tracking Progress on Tasks and Assignments12 Tracking Progress on Tasks and Assignments
12 Tracking Progress on Tasks and Assignments
Soe Naing Win
 
05 Formatting and Sharing Your Plan
05 Formatting and Sharing Your Plan 05 Formatting and Sharing Your Plan
05 Formatting and Sharing Your Plan
Soe Naing Win
 
09 Fine-tuning Assignment Details
09 Fine-tuning Assignment Details09 Fine-tuning Assignment Details
09 Fine-tuning Assignment Details
Soe Naing Win
 
03 Setting-up resources
03  Setting-up resources  03  Setting-up resources
03 Setting-up resources
Soe Naing Win
 
10 Fine-tuning Project Plan
10 Fine-tuning Project Plan10 Fine-tuning Project Plan
10 Fine-tuning Project Plan
Soe Naing Win
 
08 Fine-Tuning Resource Details
08 Fine-Tuning Resource Details08 Fine-Tuning Resource Details
08 Fine-Tuning Resource Details
Soe Naing Win
 
11 Organizing Project Details
11 Organizing Project Details11 Organizing Project Details
11 Organizing Project Details
Soe Naing Win
 

Viewers also liked (18)

Teaching Excel
Teaching ExcelTeaching Excel
Teaching Excel
 
MS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATION
 
Excel VBA
Excel VBAExcel VBA
Excel VBA
 
Excel vba macro programing
Excel vba macro programingExcel vba macro programing
Excel vba macro programing
 
Vba Class Level 1
Vba Class Level 1Vba Class Level 1
Vba Class Level 1
 
Microsoft excel 2010 useful formula & functions
Microsoft excel 2010   useful formula & functionsMicrosoft excel 2010   useful formula & functions
Microsoft excel 2010 useful formula & functions
 
Excel ppt
Excel pptExcel ppt
Excel ppt
 
Introduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosIntroduction To Excel 2007 Macros
Introduction To Excel 2007 Macros
 
Microsoft 2007 Basics
Microsoft 2007 BasicsMicrosoft 2007 Basics
Microsoft 2007 Basics
 
Essential technical skills
Essential technical skillsEssential technical skills
Essential technical skills
 
Data Mining with Excel 2010 and PowerPivot
Data Mining with Excel 2010 and PowerPivotData Mining with Excel 2010 and PowerPivot
Data Mining with Excel 2010 and PowerPivot
 
12 Tracking Progress on Tasks and Assignments
12 Tracking Progress on Tasks and Assignments12 Tracking Progress on Tasks and Assignments
12 Tracking Progress on Tasks and Assignments
 
05 Formatting and Sharing Your Plan
05 Formatting and Sharing Your Plan 05 Formatting and Sharing Your Plan
05 Formatting and Sharing Your Plan
 
09 Fine-tuning Assignment Details
09 Fine-tuning Assignment Details09 Fine-tuning Assignment Details
09 Fine-tuning Assignment Details
 
03 Setting-up resources
03  Setting-up resources  03  Setting-up resources
03 Setting-up resources
 
10 Fine-tuning Project Plan
10 Fine-tuning Project Plan10 Fine-tuning Project Plan
10 Fine-tuning Project Plan
 
08 Fine-Tuning Resource Details
08 Fine-Tuning Resource Details08 Fine-Tuning Resource Details
08 Fine-Tuning Resource Details
 
11 Organizing Project Details
11 Organizing Project Details11 Organizing Project Details
11 Organizing Project Details
 

Similar to Tutorial 8: Developing an Excel Application

Chapter.10
Chapter.10Chapter.10
Excel.t02
Excel.t02Excel.t02
Excel.t02
shabersham
 
Excel.t03
Excel.t03Excel.t03
Excel.t03
shabersham
 
Excel.t01
Excel.t01Excel.t01
Excel.t01
cherrybear2014
 
Excel.t01
Excel.t01Excel.t01
Excel.t01
shabersham
 
New Perspectives: Access.02
New Perspectives: Access.02New Perspectives: Access.02
New Perspectives: Access.02
Anna Stirling
 
New Perspectives: Access.05
New Perspectives: Access.05New Perspectives: Access.05
New Perspectives: Access.05
Anna Stirling
 
Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01
Vishal Kumar
 
New Perspectives: Access.03
New Perspectives: Access.03New Perspectives: Access.03
New Perspectives: Access.03
Anna Stirling
 
New Perspectives: Access.04
New Perspectives: Access.04New Perspectives: Access.04
New Perspectives: Access.04
Anna Stirling
 
basic database concepts
basic database conceptsbasic database concepts
basic database concepts
IIUI
 
New Perspectives: Access.01
New Perspectives: Access.01New Perspectives: Access.01
New Perspectives: Access.01
Anna Stirling
 
MS-Excel
MS-ExcelMS-Excel
MS-Excel
babyparul
 
Salary Slip In Excel.docx
Salary Slip In Excel.docxSalary Slip In Excel.docx
Salary Slip In Excel.docx
JamesAndrais
 
Automatic Salary Pay Slip in 4 Minutes
Automatic Salary Pay Slip in 4 MinutesAutomatic Salary Pay Slip in 4 Minutes
Automatic Salary Pay Slip in 4 Minutes
JamesAndrais
 
Excel 2007 for inset final copy
Excel 2007 for inset final copyExcel 2007 for inset final copy
Excel 2007 for inset final copy
Department of Education
 
Microsoft Excel
Microsoft ExcelMicrosoft Excel
Microsoft Excel
YasirKhan357
 
Excel.03
Excel.03Excel.03
Beginner's Guide to Micrososoft Excel
Beginner's  Guide  to  Micrososoft ExcelBeginner's  Guide  to  Micrososoft Excel
Beginner's Guide to Micrososoft Excel
HealthQuest Guru
 
Beginner's Guide to Micrososoft Excel
Beginner's Guide  to  Micrososoft  ExcelBeginner's Guide  to  Micrososoft  Excel
Beginner's Guide to Micrososoft Excel
HealthQuest Guru
 

Similar to Tutorial 8: Developing an Excel Application (20)

Chapter.10
Chapter.10Chapter.10
Chapter.10
 
Excel.t02
Excel.t02Excel.t02
Excel.t02
 
Excel.t03
Excel.t03Excel.t03
Excel.t03
 
Excel.t01
Excel.t01Excel.t01
Excel.t01
 
Excel.t01
Excel.t01Excel.t01
Excel.t01
 
New Perspectives: Access.02
New Perspectives: Access.02New Perspectives: Access.02
New Perspectives: Access.02
 
New Perspectives: Access.05
New Perspectives: Access.05New Perspectives: Access.05
New Perspectives: Access.05
 
Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01
 
New Perspectives: Access.03
New Perspectives: Access.03New Perspectives: Access.03
New Perspectives: Access.03
 
New Perspectives: Access.04
New Perspectives: Access.04New Perspectives: Access.04
New Perspectives: Access.04
 
basic database concepts
basic database conceptsbasic database concepts
basic database concepts
 
New Perspectives: Access.01
New Perspectives: Access.01New Perspectives: Access.01
New Perspectives: Access.01
 
MS-Excel
MS-ExcelMS-Excel
MS-Excel
 
Salary Slip In Excel.docx
Salary Slip In Excel.docxSalary Slip In Excel.docx
Salary Slip In Excel.docx
 
Automatic Salary Pay Slip in 4 Minutes
Automatic Salary Pay Slip in 4 MinutesAutomatic Salary Pay Slip in 4 Minutes
Automatic Salary Pay Slip in 4 Minutes
 
Excel 2007 for inset final copy
Excel 2007 for inset final copyExcel 2007 for inset final copy
Excel 2007 for inset final copy
 
Microsoft Excel
Microsoft ExcelMicrosoft Excel
Microsoft Excel
 
Excel.03
Excel.03Excel.03
Excel.03
 
Beginner's Guide to Micrososoft Excel
Beginner's  Guide  to  Micrososoft ExcelBeginner's  Guide  to  Micrososoft Excel
Beginner's Guide to Micrososoft Excel
 
Beginner's Guide to Micrososoft Excel
Beginner's Guide  to  Micrososoft  ExcelBeginner's Guide  to  Micrososoft  Excel
Beginner's Guide to Micrososoft Excel
 

Recently uploaded

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 

Recently uploaded (20)

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 

Tutorial 8: Developing an Excel Application

  • 1. Tutorial 8: Developing an Excel Application Microsoft Office Excel 2010 ® ®
  • 2. Visual Overview XP New Perspectives on Microsoft Excel 2010 2
  • 3. Excel Application and Defined NamesXP New Perspectives on Microsoft Excel 2010 3
  • 4. Planning an Excel Application XP • A spreadsheet written or tailored to meet specific needs • The interface helps others use it • Typically includes reports and charts, a data entry area, a custom interface, instructions, and documentation New Perspectives on Microsoft Excel 2010 4
  • 5. Naming Cells and Ranges XP • Use a defined name to: – Assign a meaningful, descriptive name to a cell or range – Quickly navigate within a workbook to the cell with the defined name – Create a more descriptive formula New Perspectives on Microsoft Excel 2010 5
  • 6. Creating Defined Names XP • Must begin with a letter or an underscore • Can include letters, numbers, periods and underscores, but not other symbols or spaces • Cannot be a valid cell address, function name, or reserved word • Can include as many as 255 characters – Short, meaningful names (5–15 characters) are more practical • Are not case sensitive New Perspectives on Microsoft Excel 2010 6
  • 7. Creating Defined Names XP • Use the Name box to create defined names New Perspectives on Microsoft Excel 2010 7
  • 8. Creating Defined Names XP • Use the Selection dialog box to create defined names by selection New Perspectives on Microsoft Excel 2010 8
  • 9. Creating Defined Names XP • Use the Name Manager dialog box to edit and delete defined names New Perspectives on Microsoft Excel 2010 9
  • 10. Creating Defined Names XP • Use the Paste Names Command to generate a list of names • Paste defined names in the Documentation worksheet after the workbook is complete New Perspectives on Microsoft Excel 2010 10
  • 11. Using Defined Names in FormulasXP • Descriptive formulas are simpler to enter and understand – If a range reference is used rather than a defined name, defined names do not automatically replace the range reference in the formula New Perspectives on Microsoft Excel 2010 11
  • 12. Adding Defined Names to Existing XP Formulas • Defined names are not automatically substituted for cell addresses in a formula • Replace cell addresses in existing formulas with their defined names to make formulas more understandable New Perspectives on Microsoft Excel 2010 12
  • 13. Visual Overview XP New Perspectives on Microsoft Excel 2010 13
  • 14. Data Validation and Protection XP New Perspectives on Microsoft Excel 2010 14
  • 15. Validating Data Entry XP • Ensures that correct data is entered and stored in a worksheet – Protects cells with formulas from accidental deletion – Reduces repetitious keystrokes and mouse clicks • Each validation rule defines criteria for data that can be stored in a cell or range • Use Data Validation dialog box to specify validation criteria, input message, and error alert for the active cell New Perspectives on Microsoft Excel 2010 15
  • 16. Specifying Validation Criteria XP • When you create a validation rule, specify the type of data allowed as well as a list or range of acceptable values (validation criteria) New Perspectives on Microsoft Excel 2010 16
  • 17. Specifying Validation Criteria XP New Perspectives on Microsoft Excel 2010 17
  • 18. Creating an Input Message XP • Reduces the chance of a data-entry error • Provides additional information about type of data allowed for the cell • Appears as a ScreenTip next to selected cell New Perspectives on Microsoft Excel 2010 18
  • 19. Creating an Error Alert Style and XP Message • An error alert determines what happens after a user attempts to make an invalid entry in a cell that has a validation rule defined • Tree error alert styles: Stop, Warning, and Information New Perspectives on Microsoft Excel 2010 19
  • 20. Creating a List Validation Rule XP • Restricts a cell to accept only entries that are on a list you create • Create the list of valid entries in the Data Validation dialog box, or use a list of valid entries in a single column or row New Perspectives on Microsoft Excel 2010 20
  • 21. Protecting a Worksheet and a XP Workbook • Reduces data-entry errors by limiting access to certain parts of the workbook • Prevents users from changing cell contents, workbook organization, or viewing formulas New Perspectives on Microsoft Excel 2010 21
  • 22. Locking and Unlocking Cells XP • A cell’s locked property determines whether changes can be made to that cell – Locked property has no impact as long as worksheet is unprotected; after worksheet is protected, locked property is in control – Default: Locked property is turned on for each cell, and worksheet protection is turned off • Common practice: Protect the worksheet, but leave some cells unlocked New Perspectives on Microsoft Excel 2010 22
  • 23. Protecting a Worksheet XP • Specify the actions still available to users • A protected worksheet can be unprotected – Require a password to turn off protection only if you are concerned that users might make changes New Perspectives on Microsoft Excel 2010 23
  • 24. Protecting a Workbook XP • Keeps a worksheet from being modified – Protecting the structure prohibits renaming, deleting, hiding, or inserting worksheets – Protecting the windows prohibits moving, resizing, closing, or hiding parts of the window • Default: Protect only the structure of the workbook, not the windows used to display it New Perspectives on Microsoft Excel 2010 24
  • 25. Unprotecting a Worksheet and a XP Workbook • A worksheet must be unprotected to edit its contents • A workbook must be unprotected to change its structure New Perspectives on Microsoft Excel 2010 25
  • 26. Inserting Comments XP • Use comments to: – Explain contents of a particular cell – Provide instructions to users – Share ideas and notes from several users collaborating on a project New Perspectives on Microsoft Excel 2010 26
  • 27. Visual Overview XP New Perspectives on Microsoft Excel 2010 27
  • 28. Working with Macros XP New Perspectives on Microsoft Excel 2010 28
  • 29. Automating Tasks with Macros XP • Macros perform repetitive tasks consistently and faster than you can • After the macro is created and tested, tasks are done exactly the same way each time • Use Developer tab to create and run macros New Perspectives on Microsoft Excel 2010 29
  • 30. Protecting Against Macro Viruses XP • Virus – Computer program designed to copy itself into other programs with the intention of causing mischief or harm • Macro viruses – Type of virus that uses a program’s own macro programming language to distribute the virus • Microsoft Office 2010 provides several options for levels of security New Perspectives on Microsoft Excel 2010 30
  • 31. Macro Security Settings XP • Control what Excel will do about macros when the workbook is opened New Perspectives on Microsoft Excel 2010 31
  • 32. Macro Security Settings XP • Set macro security in the Trust Center • Use Trusted Locations to define file paths for files considered trustworthy • Use a digital signature to identify the author of a workbook that contains macros New Perspectives on Microsoft Excel 2010 32
  • 33. Recording a Macro XP • For simple macros, use the macro recorder to record keystrokes and mouse actions as they are performed • For sophisticated macros, enter a series of commands in the Visual Basic for Applications (VBA) programming language New Perspectives on Microsoft Excel 2010 33
  • 34. Running a Macro XP • Either use the specified shortcut key or select the macro in the Macro dialog box New Perspectives on Microsoft Excel 2010 34
  • 35. Options for Fixing Macro Errors XP • Rerecord the macro using the same macro name • Delete the recorded macro; record it again • Run the macro one step at a time to locate the problem; use one of the previous methods to correct the problem New Perspectives on Microsoft Excel 2010 35
  • 36. Working with the Visual Basic Editor XP • Components – Code window contains the VBA code – Project Explorer window displays a treelike diagram consisting of every open workbook – Menu bar contains menus of commands used to edit, debug, and run VBA statements • Accessed through Macro dialog box or Visual Basic button in Code group on Developer tab New Perspectives on Microsoft Excel 2010 36
  • 37. Working with the Visual Basic Editor XP New Perspectives on Microsoft Excel 2010 37
  • 38. Understanding the Structure of XP Macros • Each macro (sub procedure) begins with Sub followed by the name of the sub procedure and a set of parentheses (the arguments) • Comments about the macro follow the statement and do not include any actions • The body of the macro follows the comments • End Sub statement indicates the end of the sub procedure New Perspectives on Microsoft Excel 2010 38
  • 39. Understanding the Structure of XP Macros • A Code window can contain several sub procedures • Each procedure is separated from the others by SubProcedureName() statement at the beginning, and End Sub statement at the end • Sub procedures are organized into modules New Perspectives on Microsoft Excel 2010 39
  • 40. Editing a Macro Using the Visual Basic XP Editor • The Visual Basic Editor provides tools to assist in writing error-free code • As you type a command, the editor provides pop-up windows and text to help you insert the correct code New Perspectives on Microsoft Excel 2010 40
  • 41. Creating Macro Buttons XP • A macro can be assigned to a button placed directly in the worksheet • Clicking a button (with a descriptive label) can be more intuitive and simpler than trying to remember combinations of keystrokes • Form Controls New Perspectives on Microsoft Excel 2010 41
  • 42. Creating Macro Buttons XP New Perspectives on Microsoft Excel 2010 42
  • 43. Saving Workbooks with Macros XP • Default Excel Workbook format is a macro- free workbook (.xlsx file extension) • To save the workbook with the macros, save the file as a macro-enabled workbook (.xlsm file extension) New Perspectives on Microsoft Excel 2010 43
  • 44. Opening a Workbook with Macros XP • First time a workbook opens, a Security Warning appears in Message Bar providing the option to: – Enable macros so they can be run, or – Open the workbook with the macros disabled New Perspectives on Microsoft Excel 2010 44
  • 45. Customizing the Ribbon XP • Minimize the Ribbon – Makes more space for a worksheet – Only Quick Access Toolbar and tab names display • Create new tabs and groups • Hide tabs or commands • Rename tabs or commands New Perspectives on Microsoft Excel 2010 45