VBA Collections A Group of Similar Objects that Share Common Properties, Methods and
|
|
- Calvin Craig
- 6 years ago
- Views:
Transcription
1
2 VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously it was known as xlm. How to access VBA in MS-Excel- 1. Press ALT+F Go To Developer Tab -> Click Visual Basic Icon. See image below. Every organization in today s world relies upon various kinds of databases for storage of all kinds of data. Data is the backbone in every aspect of an organization, be it management, marketing, finance, planning, technical and production services, issues, environment etc. Excel can be used as a database or we can call it a spreadsheet application which manipulates the data stored in it or some other database like SQL Server, Oracle database, MySQL etc. Excel has various features like implementing formulas, developing pivots, charts. The most important feature of excel is the macro programming language commonly known as VBA used within excel to develop macros. VBA means visual basic for applications. Official name is Visual Basic, Applications Edition. VBA is the vastest language amongst all the high level languages. VBA is an event driven; object oriented programming language from Microsoft that is now primarily used with Microsoft office applications such as MS-Excel, MS-Word and MS-PowerPoint. Some features of VBA are as follows 1.) VBA is a high level language which anyone knowing MS applications like excel or word can learn. This language helps in creating a macro which is nothing but a series of instructions for a task to be performed automatically. 2.) VBA enables user to automate repetitive tasks so as to reduce the manual effort. 3.) VBA not only offers macros to be created but also allows user to create UDFs i.e. user defined functions. These functions once built are incorporated in the library with all other excel functions. 4.) VBA works on windows machine so is platform dependent. 5.) VBA helps in eliminating waste and is based on agile methodology. 6.) VBA is an OOP i.e. object oriented language. Everything in VBA is treated as an object.
3 7.) VBA can be used to connect to any database other than excel itself like MySQL, Oracle etc. It makes the connection with the back end database and manipulates data as required. 8.) VBA can be used with all Microsoft applications like MS-Word, MS-Access, Outlook, MS-Power point etc. 9.) VBA macros are user specific and not author specific. They can be modified, deleted by the user who wants to run it. 10.) VBA in MS-Office provides many inbuilt functions that a user can use to build code in Excel. 11.) VBA allows users to record the macros and then tweak them for specific purposes. 12.) VBA is also used by data analysts, finance & market analysts for data manipulation, modeling etc. Mathematicians use it due to its vast library full of formulas and functions. 13.) VBA allows coder to switch off calculations and sheets update during execution of code which speeds up the processing. 14.) VBA is a Self-interpreted programming language. Compiling is very easy in VBA. 15.) VBA can help built Powerful tools in MS Office using logical programming. 16.) There is a famous one liner about VBA that there is nothing which can t be done by VBA. VBA Enables end-user programming and is used in MS Office applications as told above. It encapsulates Formulae and macros for easy tasks. Following are the contents which will be covered in this book 1.) Concept of Variables and Data Types. 2.) Conditional and Logical operators. 3.) Nested Loops, Switch Cases, conditional statements etc. 4.) Error Handling. 5.) Object handling. 6.) Concept of single and multiple dimensional arrays in VBA. 7.) String manipulation. 8.) Macro Recording. VBA Collections A Group of Similar Objects that Share Common Properties, Methods and
4 Events Such as Workbooks, Worksheets, etc. are called Collections. Worksheets are a collection of all the Worksheet objects in the active workbook. Worksheets (3) refer to the 3rd worksheet of current active workbook. Worksheets ( Sheet1 ) refer to the worksheet named Sheet1. VBA Objects VBA objects are Worksheet, Workbook, Range, Cell, Chart, Name, etc. Worksheets(Sheet1) is an Object Referring to the First Sheet Range( A1:A5 ) is an Object Referring to a Range from Row 1, Column 1 to Row 5, Column 1 Range( A1:B5 ) is an Object Referring to a Range from Row 1, Column 1 to Row 5, Column 2. Cells (1,1) or Range( A1 ) is an Object Referring to Range A1. Cells (2, 1) or Range ( A2 ) is an Object Referring to Range A2. VBA Properties, Methods and Events. Properties are the Physical Characteristics of objects For example Worksheets. Count, Worksheets. Visible = False, Range ( A1:B15 ).Rows. Count, Range ( A1:A50 ).Font. Bold = True. Methods are the Actions that Can be Performed by Objects or on Objects For Example Worksheets.Save, Worksheets.Calculate, Range( A1:A50 ).ClearContents, ActiveCell.CopySpecial. Objects Can Respond to Events, Such as Mouse Click, Double Click on a Cell, Active a Worksheet, Open/Close/Save a Workbook, etc. VBA Macro VBA Macro starts with sub keyword and ends with End Sub The format is as follows Sub Any_Name () Your Code here in between End Sub VBA macro can be assigned to any form control for example a button or it can be executed independently via some command option assigned to it. VBA macro can also be executed from the Macros window in the view tab of the menu bar.
5 Once VBA code is written in the excel file it should be saved with.xlsm extension. Some VBA Shortcuts are as follows ALT+F11- To view VBA Editor ALT+F8- To display all macros ALT+Q- To close VBA Editor and return to Excel F5- To run a Macro F2- Display Object Browser F7- Display code editor F1- Display help Ctrl+G Immediate Window F4 Properties window Ctrl+R Project Explorer. See below for the shortcuts described above. Get Started 1.) Enable Developer Tab First Go To File Tab->
6 2.) Go To Options-> A Window will appear like this -> 3.) Go To Customize Ribbon and check Developer Tab as shown below and then press OK->
7 4.) Developer tab will be shown as below on your excel sheet. The developer tab appears on the menu bar. Before Creating your first macro make sure to do following things 1.) Press ALT+F11- VBA IDE will get opened. 2.) Now click Tools tab in the menu bar on the top of the IDE. Select Options from the drop down as shown below in the snapshot. 3.) A window will appear. Just check whether the things shown in the snapshot below are checked or not.
8 Let Us Write Our First VBA Code by inserting Form control. 1.) Once you have developer tab on your menu bar click it and then go to Insert inside the developer tab and click it as shown below. 2.) Form controls window appears as shown above, Now click on the
9 button and Insert as shown below. 3.) Right Click the Button1 and assign a new macro. VBA IDE will get opened. Write a simple VBA Code is as follows Sub Button1_Click () MsgBox Hi, I have inserted this module to write my first VBA Code End Sub 4.) See below for the code in code window and the output in the message box that appears.
10 How to access VBA Editor without inserting form control 1.) Press ALT+F11 in your excel file. A window will open as shown below. 2.) Now Insert a module in it as shown below. Module 1 is the name of the first module inserted as shown below with red arrows. 3.) Now in the above module window write a piece of VBA code as follows.
11 Sub first_program () MsgBox Hi, I have inserted this module to write my first VBA Code End Sub See below for the code in code window and the output in the message box that appears. The Comments in VBA Statements or sentences in VBA code starting with single quote or REM keyword is a comment. See below in VBA IDE.
12 The Concept of Variables The following are the rules when naming the variables in Excel VBA- They must not exceed 40 characters They must contain only letters, numbers and underscore characters No spacing is allowed It must not begin with a number Examples var1, my_var etc. See below in VBA IDE Data Types 1.) Numeric 2.) Non Numeric (String, Date, Boolean, Object, variant) Declaration of variables 1.) Implicit (Variable is initialized and is variant by default) 2.) Explicit (Example Dim var as Integer) Conditional and Logical Operators 1.) Conditional (=, <, >, >=, <=, <> etc.) 2.) Logical (AND, OR, XOR and NOT)
13 Control Structures 1.) If then Else 1. If Index = 0 Then MsgBox Hi Zero Else If Index = 1 Then MsgBox Hi One Else MsgBox Hi None End If 2.) Switch case 1. Select Case Index Case 0 MsgBox Hi Zero Case 1 MsgBox Hi One Case Else MsgBox Hi None End Select See below in VBA IDE Loop Structures in VBA 1.) The loop structures are used when repetitive work is being done. 2.) Loops make the execution sequentially given the jump. For example if a process is required to be run 10 times then we use 1 to 10. If a process is required
14 to be done only odd times then we fo 1 to 10 in steps of 2. 3.) There are various kinds of loop statements in VBA. 1. For Next Loop 2. While Wend Loop 3. Do while loop 4. Etc 4.) See below for code in IDE. Displaying table of 5 Working with worksheets 1.) As already explained earlier everything in VBA is an object for example worksheet, Range, Cell etc. 2.) Worksheets ( Sheet1 ).cells (1,2).value refers to the B1 in Sheet1 of excel workbook. Error Handling Following are the ways for it 1.) On Error GoTo LineNumber (Goes to the specified line number and Code resumes from) 2.) On Error GoTo 0 (Disables enabled error handler in the current procedure and resets it to Nothing.) 3.) On Error GoTo -1 (Disables enabled exception in the current procedure and resets it to Nothing.) 4.) On Error resume Next (Control goes to the statement immediately after
15 the errored statement) Arrays Manipulation in VBA 1.) Arrays are a significant part of any programming language which acts as front end processing database. 2.) Unlike variables Arrays are used to store multiple values of same data type. Arrays store homogeneous data. 3.) Array stores the values on the basis of key value pair i.e. array indexes the values stores in it. The Lower Bound and Upper bound can be set manually for an array. 4.) If you try to access any index of the already built array that does not exist an error named Subscript out of Range occurs. 5.) Arrays can be of two types which are Static and Dynamic. The former is used when the size of an array remains the same throughout in the procedure while the latter permits the user to regulate the size of an array at run time. 6.) Mostly in VBA single dimensional array is used although VBA provides the functionality of multi-dimensional arrays. 7.) A user can only pass an array to a procedure using By Reference and a user can return an array from a function but the array, it is assigned to, must not be currently allocated. 8.) Any worksheet in a workbook has data in the form of Rows and columns. So basically the data stored is two dimensional. Any data from excel sheet can be directly transferred to a two dimensional array and vice versa for manipulation purposes. Recording a VBA Macro 1.) Let s record a macro. 2.) Go to excel while you are working on. Click View in menu bar and then click Macros on the extreme right. A drop down will appear. Click on the Record Macro just below View Macros. See below.
16 3.) Now once you have clicked the record macro, whatever activity you will do in that excel file will be recorded. 4.) The Macro recording is useful when you are doing some repetitive task on the daily basis. 5.) The Macro recorded can be tweaked further as per the user s need. An Example VBA Sub Button1_Click () Dim myvalue As Variant Displaying A Message MsgBox Hi! I am a VBA coder Adding two values MsgBox Adding two values in worksheet Worksheets ( Sheet1 ).Cells (1, 3) =Worksheets ( Sheet1 ).Cells (1, 1)+Worksheets ( Sheet1 ).Cells (1, 2) Input Box and Assigning value to Range A2 MyValue = InputBox( Give me some input ) Range ( A2 ) = MyValue Copy and paste range Range ( A1:A2 ).Select Selection.Copy Range ( L1 ).Select ActiveSheet.Paste End Sub
17 Code in IDE VBA Window. Output is as follows - SAMPLE VBA CODES FOR YOUR USAGE 1.) VBA code for simple mathematical calculations using values in worksheet s cells. Some code lines are as follows
18 1. Worksheets( Sheet1 ).cells(1,1).value = Worksheets( Sheet1 ).cells(1,1).value = Worksheets( Sheet1 ).Cells(4, 2).Value = Worksheets( Sheet1 ).Cells(1, 2).Value + Worksheets( Sheet1 ).Cells(2, 2).Value 4. Complete code is shown below in the snapshot. Output is as follows 2.) Checking if a Number entered by the user is Even or Odd. See Code
19 Output 3.) Code for Sorting a column Output
20 Output 4.) Code to send a mail from Excel via Outlook. Just paste the code as shown in the snapshot below and change your fields accordingly.
21 5.) Concatenating Two Strings in VBA. See code below- 6.) Some String manipulation Functions in VBA. See code and output as shown below.
22 7.) Working with Doc file
23 8.) Sheet Manipulation. Adding new Sheet, Deleting an existing sheet, renaming a sheet and cleaning the whole sheet etc.
24 9.) Working with Arrays Sub Arrays_Manipulation() Dim CombineArray As String Working With Arrays, Storing values 1 to 10 in the Array named Array1 CombineArray = Dim Array1(1 To 10) As Integer For i = 1 To 10 Array1(i) = i CombineArray = CombineArray & CStr(Array1(i)) &,
25 Next i MsgBox CombineArray Storing table of say 17 in Array1 CombineArray = For i = 1 To 10 Array1(i) = 17 * i CombineArray = CombineArray & CStr(Array1(i)) &, Next i MsgBox CombineArray Dispalying Lower Bound and Upper Bound of Array MsgBox LBound(Array1) MsgBox UBound(Array1) Summing the array elements Dim sumarray As Integer sumarray = 0 For i = 1 To 10 sumarray = sumarray + Array1(i) Next i MsgBox sumarray Erasing the contents of an array Erase Array1 Working with Two dimesional Array Dim Array2(1 To 5, 1 To 5), counter As Integer counter = 1 For i = 1 To 5 For j = 1 To 5 Array2(i, j) = counter counter = counter + 1 Next j Next i End Sub Code in VBA IDE
26 The above code describes two kinds of arrays. Single dimensional and Double dimensional. It shows how to enter values in these kinds of arrays, how to access the elements of multi-dimensional array, how to perform operations like sum, sort, erase etc. 10.) Displaying Name of each work sheet and usage of For Each.
27 11.) Hiding a sheet, copy and paste into same sheet and another sheet. 12.) Removing duplicates from a column in excel worksheet.
28 See the Input and Output as shown below 13.) How to generate a Random Number? Output is as follows 14.) Creating Graph Using VBA. See the code below Let s Say we have the following data. We will make a code to represent this with a graph.
29 Code- By changing the desired values in the code below you can create a graph for any data. Output
30 15.) Create a pattern using nested loops The code below will teach you how to use nested loops and creating patterns of various kinds by just manipulating these loops. Output 16.) Creating pivot by recording and then tweak it as per your requirement. Let s take the same old data
31 Recorded code in VBA Output
32 17.) Code to swap values present in cells. Input and Output after code execution 18.) VBA code to delete all data from the sheet and removing the filters if they
33 exist. Input Sheet with Data and filters applied Output after the code is executed All the data has been deleted and filters have been removed.
34 19.) VBA code to create an Exam spreadsheet of students and their grade submissions. Input Sheet containing student names and marks obtained in various subjects. Grade Criteria VBA Code for calculations
35 Sub marks_calculator () Dim students(1 To 6) As String Dim maxmarks As Integer Dim marksobtained As Long maxmarks = 0 marksobtained = 0 For i = 4 To 10 maxmarks = maxmarks + Worksheets( Sheet1 ).Cells(i, 3).Value Next i Worksheets( Sheet1 ).Cells(i, 3).Value = maxmarks For j = 1 To 6 For i = 4 To 10 marksobtained = marksobtained + Worksheets( Sheet1 ).Cells(i, j + 3).Value Next i Worksheets( Sheet1 ).Cells(i, j + 3).Value = marksobtained If ((marksobtained * 100) / maxmarks) < 40 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = F End If If ((marksobtained * 100) / maxmarks) >= 40 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = E End If If ((marksobtained * 100) / maxmarks) >= 55 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = D End If If ((marksobtained * 100) / maxmarks) >= 70 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = C End If If ((marksobtained * 100) / maxmarks) >= 75 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = C+ End If If ((marksobtained * 100) / maxmarks) >= 80 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = B
36 End If If ((marksobtained * 100) / maxmarks) >= 85 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = B+ End If If ((marksobtained * 100) / maxmarks) >= 90 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = A End If If ((marksobtained * 100) / maxmarks) >= 95 Then Worksheets( Sheet1 ).Cells(i + 1, j + 3).Value = A+ End If marksobtained = 0 Next j End Sub Snapshot of code in IDE
37 See Output in Bold Red below
38 20.) Generating different types of graph from a given data. Let s see the data first. Look Below for the data and the control buttons which will show different types of graphs on clicking. Code for Generating Bar Graph is as follows
39 Output Code for Generating Line Graph is as follows Output is as follows
40 Code for Chart Type of Graph Output is as follows
41 21.) Code to display factorial of a number. Sub fact() Dim a, fact As Integer a = InputBox( Enter any number for its factorial calculation ) fact = a For i = a - 1 To 1 Step -1 fact = fact * i Next i MsgBox fact End Sub
42 Output
BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation
BASIC EXCEL SYLLABUS Section 1: Getting Started Unit 1.1 - Excel Introduction Unit 1.2 - The Excel Interface Unit 1.3 - Basic Navigation and Entering Data Unit 1.4 - Shortcut Keys Section 2: Working with
More informationExcel VBA. Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data.
Excel VBA WHAT IS VBA AND WHY WE USE IT Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data. Sometimes though, despite the rich set of features in the
More informationVBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide
VBA Visual Basic for Applications Learner Guide 1 Table of Contents SECTION 1 WORKING WITH MACROS...5 WORKING WITH MACROS...6 About Excel macros...6 Opening Excel (using Windows 7 or 10)...6 Recognizing
More informationMicrosoft Excel Microsoft Excel
Excel 101 Microsoft Excel is a spreadsheet program that can be used to organize data, perform calculations, and create charts and graphs. Spreadsheets or graphs created with Microsoft Excel can be imported
More informationDATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan
DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic
More informationMicrosoft Excel 2013 Unit 1: Spreadsheet Basics & Navigation Student Packet
Microsoft Excel 2013 Unit 1: Spreadsheet Basics & Navigation Student Packet Signing your name below means the work you are turning in is your own work and you haven t given your work to anyone else. Name
More informationExcel Level 1
Excel 2016 - Level 1 Tell Me Assistant The Tell Me Assistant, which is new to all Office 2016 applications, allows users to search words, or phrases, about what they want to do in Excel. The Tell Me Assistant
More informationMs Excel Dashboards & VBA
Ms Excel Dashboards & VBA 32 hours, 4 sessions, 8 hours each Day 1 Formatting Conditional Formatting: Beyond Simple Conditional Formats Data Validation: Extended Uses of Data Validation working with Validation
More informationWorkbooks (File) and Worksheet Handling
Workbooks (File) and Worksheet Handling Excel Limitation Excel shortcut use and benefits Excel setting and custom list creation Excel Template and File location system Advanced Paste Special Calculation
More informationReference Services Division Presents. Excel Introductory Course
Reference Services Division Presents Excel 2007 Introductory Course OBJECTIVES: Navigate Comfortably in the Excel Environment Create a basic spreadsheet Learn how to format the cells and text Apply a simple
More informationCivil Engineering Computation
Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday
More informationMS Excel VBA Class Goals
MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions
More informationOutline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014
Midterm Review Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers April 4, 2017 Outline Excel spreadsheet basics Use of VBA functions and subs Declaring/using variables
More informationAdvanced Financial Modeling Macros. EduPristine
Advanced Financial Modeling Macros EduPristine www.edupristine.com/ca Agenda Introduction to Macros & Advanced Application Building in Excel Introduction and context Key Concepts in Macros Macros as recorded
More informationExcel Tables and Pivot Tables
A) Why use a table in the first place a. Easy to filter and sort if you only sort or filter by one item b. Automatically fills formulas down c. Can easily add a totals row d. Easy formatting with preformatted
More informationExcel Advanced
Excel 2016 - Advanced LINDA MUCHOW Alexandria Technical & Community College 320-762-4539 lindac@alextech.edu Table of Contents Macros... 2 Adding the Developer Tab in Excel 2016... 2 Excel Macro Recorder...
More informationSPREADSHEET (Excel 2007)
SPREADSHEET (Excel 2007) 1 U N I T 0 4 BY I F T I K H A R H U S S A I N B A B U R Spreadsheet Microsoft Office Excel 2007 (or Excel) is a computer program used to enter, analyze, and present quantitative
More informationBeginning Excel. Revised 4/19/16
Beginning Excel Objectives: The Learner will: Become familiar with terminology used in Microsoft Excel Create a simple workbook Write a simple formula Formatting Cells Adding Columns Borders Table of Contents:
More informationMicrosoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart
Microsoft Excel 2010 Chapter 1 Creating a Worksheet and an Embedded Chart Objectives Describe the Excel worksheet Enter text and numbers Use the Sum button to sum a range of cells Copy the contents of
More informationOBJECT ORIENTED PROGRAMMING: VBA
Agenda for Today VBA and Macro creation (using Excel) DSC340 Object-Oriented Programming Creating Macros with VBA Mike Pangburn What is O-O programming? OBJECT ORIENTED PROGRAMMING: VBA A programming style
More informationAdvanced Excel Selecting and Navigating Cells
Advanced Excel 2007 One major organizational change in Excel 2007, when compared to 2003, is the introduction of ribbons. Each ribbon reveals many more options depending on what tab is selected. The Help
More informationThis chapter is intended to take you through the basic steps of using the Visual Basic
CHAPTER 1 The Basics This chapter is intended to take you through the basic steps of using the Visual Basic Editor window and writing a simple piece of VBA code. It will show you how to use the Visual
More informationMicrosoft Excel 2010 Training. Excel 2010 Basics
Microsoft Excel 2010 Training Excel 2010 Basics Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
More informationx, with a range of 1-50 (You can use the randbetween command on excel)
HW 2, Part 1 Question 1 (In EXCEL) Create a data set with the following characteristics: Sample size: 100 One independent variable: x, with a range of 1-50 (You can use the randbetween command on excel)
More informationGAZIANTEP UNIVERSITY INFORMATICS SECTION SEMETER
GAZIANTEP UNIVERSITY INFORMATICS SECTION 2010-2011-2 SEMETER Microsoft Excel is located in the Microsoft Office paket. in brief Excel is spreadsheet, accounting and graphics program. WHAT CAN WE DO WITH
More informationMICROSOFT OFFICE. Courseware: Exam: Sample Only EXCEL 2016 CORE. Certification Guide
MICROSOFT OFFICE Courseware: 3263 2 Exam: 77 727 EXCEL 2016 CORE Certification Guide Microsoft Office Specialist 2016 Series Microsoft Excel 2016 Core Certification Guide Lesson 1: Introducing Excel Lesson
More informationLab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet
Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet 1. Macros 1.1 What is a macro? A macro is a set of one or more actions
More informationThe For Next and For Each Loops Explained for VBA & Excel
The For Next and For Each Loops Explained for VBA & Excel excelcampus.com /vba/for-each-next-loop/ 16 Bottom line: The For Next Loops are some of the most powerful VBA macro coding techniques for automating
More informationLecture- 5. Introduction to Microsoft Excel
Lecture- 5 Introduction to Microsoft Excel The Microsoft Excel Window Microsoft Excel is an electronic spreadsheet. You can use it to organize your data into rows and columns. You can also use it to perform
More informationData. Selecting Data. Sorting Data
1 of 1 Data Selecting Data To select a large range of cells: Click on the first cell in the area you want to select Scroll down to the last cell and hold down the Shift key while you click on it. This
More informationExcel 2010 Formulas Don't Update Automatically
Excel 2010 Formulas Don't Update Automatically Home20132010Other VersionsLibraryForumsGallery Ask a question How can I make the formula result to update automatically when I open it after each update on
More informationMODEL QUESTION PAPER-II
MODEL QUESTION PAPER-II Duration: 2 ½ hours Marks: 50 SECTION-A Choose the Correct answer given below: (20x1=20) 1. An excel workbook is a collection of A. Workbooks B. Worksheets C. Charts D. Worksheets
More informationMicrosoft Excel 2010 Level 1
Microsoft Excel 2010 Level 1 One Day Course Course Description You have basic computer skills such as using a mouse, navigating through windows, and surfing the Internet. You have also used paper-based
More informationDOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO
Chapter 1 : All about printing sheets, workbook, charts etc. from Excel VBA - blog.quintoapp.com Hello Friends, Hope you are doing well!! Thought of sharing a small VBA code to help you writing a code
More informationStarting Excel application
MICROSOFT EXCEL 1 2 Microsoft Excel: is a special office program used to apply mathematical operations according to reading a cell automatically, just click on it. It is called electronic tables Starting
More informationEXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING
EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING TABLE OF CONTENTS 1. What is VBA? 2. Safety First! 1. Disabling and Enabling Macros 3. Getting started 1. Enabling the Developer tab 4. Basic
More informationMODULE VI: MORE FUNCTIONS
MODULE VI: MORE FUNCTIONS Copyright 2012, National Seminars Training More Functions Using the VLOOKUP and HLOOKUP Functions Lookup functions look up values in a table and return a result based on those
More informationIntroduction to Excel 2007
Introduction to Excel 2007 These documents are based on and developed from information published in the LTS Online Help Collection (www.uwec.edu/help) developed by the University of Wisconsin Eau Claire
More informationAppendix A1 Visual Basics for Applications (VBA)
Credit Risk Modeling Using Excel and VBA with DVD By Gunter Löffler and Peter N. Posch 2011 John Wiley & Sons, Ltd. Appendix A1 Visual Basics for Applications (VBA) MACROS AND FUNCTIONS In this book, we
More informationd2vbaref.doc Page 1 of 22 05/11/02 14:21
Database Design 2 1. VBA or Macros?... 2 1.1 Advantages of VBA:... 2 1.2 When to use macros... 3 1.3 From here...... 3 2. A simple event procedure... 4 2.1 The code explained... 4 2.2 How does the error
More informationEuropean Computer Driving Licence. Advanced Spreadsheet Software BCS ITQ Level 3. Syllabus Version 2.0
ECDL Advanced European Computer Driving Licence Advanced Spreadsheet Software BCS ITQ Level 3 Using Microsoft Excel 2010 Syllabus Version 2.0 This training, which has been approved by BCS, The Chartered
More informationCorporate essentials
Microsoft Office Excel 2016, Corporate essentials A comprehensive package for corporates and government organisations Knowledge Capital London transforming perfomance through learning MS OFFICE EXCEL 2016
More informationSpreadsheets. Dr. Abdallah Mohamed
Spreadsheets Dr. Abdallah Mohamed Key Points 1) Spreadsheets are programs for storing and manipulating data that is represented as a table of cells. 2) Each cell has a row number and column label which
More informationBasics of Spreadsheet
106 :: Data Entry Operations 6 Basics of Spreadsheet 6.1 INTRODUCTION A spreadsheet is a large sheet having data and information arranged in rows and columns. As you know, Excel is one of the most widely
More informationIntroduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31
Contents at a Glance Introduction... 1 Part I: Getting Started with Excel VBA Programming... 9 Chapter 1: What Is VBA?...11 Chapter 2: Jumping Right In...21 Part II: How VBA Works with Excel... 31 Chapter
More informationDay : Date : Objects : Open MS Excel program * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office.
Day : Date : Objects : Open MS Excel program * Open Excel application. Select : start Choose: programs Choose : Microsoft Office Select: Excel *The interface of Excel program - Menu bar. - Standard bar.
More informationdownload instant at
CHAPTER 1 - LAB SESSION INTRODUCTION TO EXCEL INTRODUCTION: This lab session is designed to introduce you to the statistical aspects of Microsoft Excel. During this session you will learn how to enter
More information3. (1.0 point) To quickly switch to the Visual Basic Editor, press on your keyboard. a. Esc + F1 b. Ctrl + F7 c. Alt + F11 d.
Excel Tutorial 12 1. (1.0 point) Excel macros are written in the programming language. a. Perl b. JavaScript c. HTML d. VBA 2. (1.0 point) To edit a VBA macro, you need to use the Visual Basic. a. Manager
More informationExcel 2007 Pivot Table Sort Column Headings
Excel 2007 Pivot Table Sort Column Headings Pivot table is not used for sorting and filtering, it is used for summarizing and reporting. labels and col5 to values, as shown in the figure above (col1, col2
More information2013 INTERMEDIATE MANUAL
C B C H O U S E 2 4 C A N N I N G S T R E E T E D I N B U R G H E H 3 8 E G 0 1 3 1 2 7 2 2 7 9 0 W W W. I T R A I N S C O T L A N D. C O. U K I N F O @ I T R A I N S C O T L A N D. C O. U K CONTENTS CHAPTER
More informationPrepared By: Graeme Hilson. U3A Nunawading
0 Prepared By: Graeme Hilson U3A Nunawading - 2015 1 CONTENTS This Course Page 3 Reference Material Page 3 Introduction page 3 Microsoft Excel Page 3 What is a Spreadsheet Page 4 Excel Screen Page 4 Using
More informationCandy is Dandy Project (Project #12)
Candy is Dandy Project (Project #12) You have been hired to conduct some market research about M&M's. First, you had your team purchase 4 large bags and the results are given for the contents of those
More informationMicrosoft Excel Level 2
Microsoft Excel Level 2 Table of Contents Chapter 1 Working with Excel Templates... 5 What is a Template?... 5 I. Opening a Template... 5 II. Using a Template... 5 III. Creating a Template... 6 Chapter
More informationExcel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013)
Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) T APPENDIX B he Excel template for the Payroll Project is an electronic version of the books of account and payroll
More informationExcel 2013 Intermediate
Excel 2013 Intermediate Quick Access Toolbar... 1 Customizing Excel... 2 Keyboard Shortcuts... 2 Navigating the Spreadsheet... 2 Status Bar... 3 Worksheets... 3 Group Column/Row Adjusments... 4 Hiding
More informationMicrosoft Excel 2007 Macros and VBA
Microsoft Excel 2007 Macros and VBA With the introduction of Excel 2007 Microsoft made a number of changes to the way macros and VBA are approached. This document outlines these special features of Excel
More informationMicrosoft How to Series
Microsoft How to Series Getting Started with EXCEL 2007 A B C D E F Tabs Introduction to the Excel 2007 Interface The Excel 2007 Interface is comprised of several elements, with four main parts: Office
More informationDesigned by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1
Excel Essentials Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1 FREQUENTLY USED KEYBOARD SHORTCUTS... 1 FORMATTING CELLS WITH PRESET
More informationMs excel. The Microsoft Office Button. The Quick Access Toolbar
Ms excel MS Excel is electronic spreadsheet software. In This software we can do any type of Calculation & inserting any table, data and making chart and graphs etc. the File of excel is called workbook.
More informationUsing Excel 2011 at Kennesaw State University
Using Excel 2011 at Kennesaw State University Getting Started Information Technology Services Outreach and Distance Learning Technologies Copyright 2011 - Information Technology Services Kennesaw State
More informationKNACK TRAINING. MICROSOFT OFFICE: TIPS & TRICKS FOR EFFICIENCY
KNACK TRAINING http://knacktraining.com http://youtube.com/neilmalek MICROSOFT OFFICE: TIPS & TRICKS FOR EFFICIENCY 2 TABLE OF CONTENTS MICROSOFT WORD MOUSE & KEYBOARD TRICKS NAVIGATION 4 SELECTION 7 FORMATTING
More informationIDENTIFYING UNIQUE VALUES IN AN ARRAY OR RANGE (VBA)
Date: 20/11/2012 Procedure: Identifying Unique Values In An Array Or Range (VBA) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 IDENTIFYING UNIQUE VALUES IN AN ARRAY OR
More informationMicrosoft Access 2010
www.jwalkonline.org/main michael@jwalkonline.org @MichaelJWalk Microsoft Access 2010 Part 3 Michael J. Walk It's about control: use advanced features of Access to control data entry, automate processes,
More informationThe clean-up functionality takes care of the following problems that have been happening:
Email List Clean-up Monte McAllister - December, 2012 Executive Summary Background This project is a useful tool to help remove bad email addresses from your many email lists before sending a large batch
More informationIntroduction to Microsoft Excel 2010 Quick Reference Sheet
Spreadsheet What is a spreadsheet? How is Excel 2010 different from previous versions? A grid of rows and columns that help to organize, summarize and calculate data. Microsoft Excel 2010 is built on the
More informationIITS Workshop Creating a Gradebook in Microsoft Office Excel 2007
IITS Workshop Creating a Gradebook in Microsoft Office Excel 2007 Table of Contents Our Gradebook Example:... 3 Set Up a New Gradebook... 3 Adding Formulas (Averages and Final Grades)... 4 Formatting data...
More informationExcel Format cells Number Percentage (.20 not 20) Special (Zip, Phone) Font
Excel 2013 Shortcuts My favorites: Ctrl+C copy (C=Copy) Ctrl+X cut (x is the shape of scissors) Ctrl+V paste (v is the shape of the tip of a glue bottle) Ctrl+A - or the corner of worksheet Ctrl+Home Goes
More informationMicrosoft Excel Chapter 1. Creating a Worksheet and a Chart
Microsoft Excel 2013 Chapter 1 Creating a Worksheet and a Chart Objectives Describe the Excel worksheet Enter text and numbers Use the Sum button to sum a range of cells Enter a simple function Copy the
More informationACCT 133 Excel Schmidt Excel 2007 to 2010 Conversion
ACCT 133 Excel Schmidt Excel 2007 to 2010 Conversion Note: Use this handout in connection with the handout on the parts of the Excel 2010 worksheet. This will allow you to look at the various portions
More informationExcel 2010 Macro Vba For Loops Break Nested
Excel 2010 Macro Vba For Loops Break Nested If you want to continue to show page breaks after your macro runs, you can set the The With statement utilized in this example tells Excel to apply all the If
More informationIntermediate Excel 2016
Intermediate Excel 2016 Relative & Absolute Referencing Relative Referencing When you copy a formula to another cell, Excel automatically adjusts the cell reference to refer to different cells relative
More informationExcel 2010 Macro Vba For Loop Through Rows In A Sheet
Excel 2010 Macro Vba For Loop Through Rows In A Sheet I'm using Excel 2013 & I'm putting together a macro to automate copy/pasting I've not used VBA for a very long time so I'm at a bit of a loss as to
More informationI OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS...
EXCEL 2010 BASICS Microsoft Excel I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS... 6 The Mouse... 6 What Are Worksheets?... 6 What is a Workbook?...
More informationUsing macros enables you to repeat tasks much
An Introduction to Macros Using macros enables you to repeat tasks much more efficiently than tediously performing each step over and over. A macro is a set of instructions that you use to automate a task.
More informationCourse Contents For All Advance Excel, VBA Macros and MS ACCESS
Course Contents For All Advance Excel, VBA Macros and MS ACCESS Introduction and Basic Brush-up of MS Excel and Excel Back-End Options: Start-up with MS Excel, Quick review on MS Excel Customize Ribbon,
More informationThe Microsoft Excel Course is divided into 4 levels
MS Excel is a very powerful tools used by most of the data analyst in the industry. In this course you will learn how to Master Excel and make it perform any kind of data analysis and Visualization. You
More informationAdvanced Excel Macros : Data Validation/Analysis : OneDrive
Advanced Excel Macros : Data Validation/Analysis : OneDrive Macros Macros in Excel are in short, a recording of keystrokes. Beyond simple recording, you can use macros to automate tasks that you will use
More informationBASIC MACROINSTRUCTIONS (MACROS)
MS office offers a functionality of building complex actions and quasi-programs by means of a special scripting language called VBA (Visual Basic for Applications). In this lab, you will learn how to use
More informationINTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4
Introduction to Microsoft Excel 2016 INTRODUCTION... 1 The Excel 2016 Environment... 1 Worksheet Views... 2 UNDERSTANDING CELLS... 2 Select a Cell Range... 3 CELL CONTENT... 4 Enter and Edit Data... 4
More informationDATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)
Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA
More informationChapter-2 Digital Data Analysis
Chapter-2 Digital Data Analysis 1. Securing Spreadsheets How to Password Protect Excel Files Encrypting and password protecting Microsoft Word and Excel files is a simple matter. There are a couple of
More informationReview for Programming Exam and Final May 4-9, Ribbon with icons for commands Quick access toolbar (more at lecture end)
Review for Programming Exam and Final Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers May 4-9, 2017 Outline Schedule Excel Basics VBA Editor and programming variables
More informationSwitching to Sheets from Microsoft Excel Learning Center gsuite.google.com/learning-center
Switching to Sheets from Microsoft Excel 2010 Learning Center gsuite.google.com/learning-center Welcome to Sheets Now that you've switched from Microsoft Excel to G Suite, learn how to use Google Sheets
More informationYou can record macros to automate tedious
Introduction to Macros You can record macros to automate tedious and repetitive tasks in Excel without writing programming code directly. Macros are efficiency tools that enable you to perform repetitive
More informationMicrosoft Access 2010
Microsoft Access 2010 Microsoft Access is database software that provides templates to help you add databases that make it easier to track, report, and share data with others. Although very powerful, the
More informationAs you probably know, Microsoft Excel is an
Introducing Excel Programming As 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,
More informationCSE 123 Introduction to Computing
CSE 123 Introduction to Computing Lecture 11 Programming with Arrays SPRING 2012 Assist. Prof. A. Evren Tugtas Array Variables Review For detailed information on array variables look at the notes of Lecture
More informationIntroduction 7. Begin with Excel 21
Contents Contents 1 2 3 Introduction 7 The Spreadsheet Concept 8 Microsoft Excel 10 Microsoft Office 2013 11 System Requirements 12 Excel 2013 under Windows 7 13 Excel 2013 and Windows 8 14 The Office
More informationAn introduction to programming in Visual Basic AGEC
This document was generated at 11:55 AM on Wednesday, March 01, 2017 An introduction to programming in Visual Basic AGEC 642-2017 I. Introduction The purpose of this tutorial is to provide you with the
More informationExcel Project 1 Creating a Worksheet and an Embedded Chart
7 th grade Business & Computer Science 1 Excel Project 1 Creating a Worksheet and an Embedded Chart What is MS Excel? MS Excel is a powerful spreadsheet program that allows users to organize data, complete
More informationNever Give Up Page 1
VISUAL BASIC FOR APPLICATIONS (VBA) & MACROS TRAINING: Microsoft Visual Basic for Applications (VBA, Macros) when used with Microsoft Excel can build powerful automated business tools quickly and with
More informationCopyright 2018 MakeUseOf. All Rights Reserved.
The Beginner s Guide to Microsoft Excel Written by Sandy Stachowiak Published April 2018. Read the original article here: https://www.makeuseof.com/tag/beginners-guide-microsoftexcel/ This ebook is the
More informationMgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis.
Section 1 Multiple Choice MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam 1. Spreadsheets are known as the of business analysis. A. German motor car B. Mexican jumping bean C. Swiss army
More informationDOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES
Chapter 1 : Examples of commonly used formulas - Office Support A collection of useful Excel formulas for sums and counts, dates and times, text manipularion, conditional formatting, percentages, Excel
More informationMicrosoft Excel 2016 Level 1
Microsoft Excel 2016 Level 1 One Day Course Course Description You have basic computer skills such as using a mouse, navigating through windows, and surfing the Internet. You have also used paper-based
More informationVBA MACROS ,
Take additional challenges arising in industry! Transform yourself. VBA MACROS Enquire today! +91-8802000175, 0124-436-0863 info@websjyoti.com www.exceltraininggurgaon.in ABOUT THE TRAINER Hirdesh Bhardwaj
More informationBasic Microsoft Excel 2011
Basic Microsoft Excel 2011 Table of Contents Starting Excel... 2 Creating a New Workbook... 3 Saving a Workbook... 3 Creating New Worksheets... 3 Renaming a Worksheet... 3 Deleting a Worksheet... 3 Selecting
More informationPROBLEM SOLVING AND OFFICE AUTOMATION. A Program consists of a series of instruction that a computer processes to perform the required operation.
UNIT III PROBLEM SOLVING AND OFFICE AUTOMATION Planning the Computer Program Purpose Algorithm Flow Charts Pseudo code -Application Software Packages- Introduction to Office Packages (not detailed commands
More informationExcel Macro Record and VBA Editor. Presented by Wayne Wilmeth
Excel Macro Record and VBA Editor Presented by Wayne Wilmeth 1 What Is a Macro? Automates Repetitive Tasks Written in Visual Basic for Applications (VBA) Code Macro Recorder VBA Editor (Alt + F11) 2 Executing
More information12 BASICS OF MS-EXCEL
12 BASICS OF MS-EXCEL 12.1 INTRODUCTION MS-Excel 2000 is a Windows based application package. It is quite useful in entering, editing, analysis and storing of data. Arithmetic operations with numerical
More information