SlideShare a Scribd company logo
Excel VBA Programming 3rd
         Session




AmeetZ Academy - An Easy Learning Source
Procedures
   Let us refresh our knowledge on Procedures which
   we learnt in Last session.
   A procedure is an assignment we give to VBScript to
   perform or to complete, the normal flow of the
   program/application. There are two kinds of
   procedures in VBScript:
   A sub procedure and a function. The difference
   between these two is their execution and Coding
   ( Programming) based on your goal.


AmeetZ Academy - An Easy Learning Source
VBA Procedures – Sub and Function
   Function is simply that a function can return a value
   to the procedure that called it. That procedure can
   be another Function, a Sub or even to a worksheet
   cell. When it is done using a worksheet formula, the
   Function is known as a User Defined Function, or
   UDF. Potentially all Functions are UDFs.
    Sub procedures are just like Functions, except that
   they do not return a value in the same way that a
   Function does. They can accept arguments, or not,
   just like a Function does.
AmeetZ Academy - An Easy Learning Source
VBA Procedures – Examples
• Sub Procedures
  A sub procedure is a section of code that carries an assignment but doesn't
  give back a result. To create a sub procedure, start the section of code with
  the Sub keyword followed by a name for the sub procedure. To differentiate
  the name of the sub procedure with any other regular name, it must be
  followed by an opening and closing parentheses.
   The section of the sub procedure code closes with End Sub as follows:

   Sub Macro1()
   '
   ‘ Macro1 Macro
       ActiveCell.FormulaR1C1 = "123"
       Range("A2").Select
   End Sub



AmeetZ Academy - An Easy Learning Source

Recommended for you

Using macros in microsoft excel part 1
Using macros in microsoft excel   part 1Using macros in microsoft excel   part 1
Using macros in microsoft excel part 1

Macros can automate tasks in Excel like data entry, validation, selection, formatting, and navigation. Macros are created by recording user actions or writing VBA code. To record a macro, the recorder is turned on, the macro is named and saved, then actions are performed and recorded. Recorded macros can then be run to automate the recorded tasks. Common uses of macros include formatting templates, entering dates and times, validating user input, and displaying messages and feedback. Key objects and statements in VBA include Range, Variables, If/Then, and loops for programming macros.

using macros in microsoft excel part 1
Excel macro
Excel macroExcel macro
Excel macro

The document discusses Excel macros, which allow users to automate repetitive tasks like formatting cells. Macros are programs written in VBA (Visual Basic for Applications) that perform actions like selecting cells with values over 10 and changing their font color to red and background to black. For tasks involving many cells, macros provide a solution compared to manual formatting, as they can save significant time by automating repetitive actions. The document demonstrates creating a macro through recording actions and editing the recorded code.

Introduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosIntroduction To Excel 2007 Macros
Introduction To Excel 2007 Macros

This presentation will give you a brief introduction to Excel Macros. Also it covers step by step instructions on how to record a Macro in Excel 2007 & execute the same.

macroexcelvba
VBA Procedures – Examples contd..
    • Creating a Function
      A function is an assignment that a piece of code can take care for
      the functionality of a database. The main difference between a sub
      procedure and a function procedure is that a function can return a
      value.

       A function is created like a sub procedure with a few more rules.
       The creation of function starts with the Function keyword and
       closes with End Function. Here is an example:

       Function FindFullName()

       End Function


AmeetZ Academy - An Easy Learning Source
PROCEDURES: PUBLIC OR PRIVATE

        By default all procedures are “Public”. That is
       to say that they can pretty much be used from
       anywhere in the project.
       For Sub procedures, it also means that they
       show up in the Tools | Macro | Macros list as
       available to be run through that interface ;and
       For Functions, public functions can be used as
       UDFs.

AmeetZ Academy - An Easy Learning Source
• But sometimes we don’t want the user to have
      access to a procedure, or don’t want other
      modules to be able to use a procedure in another
      module.
    • For those times, we can make a procedure only
      accessible from within the code module that it
      exists in by preceding its declaration with the
      word Private.
    • We , here, notice that all of the Workbook and
      Worksheet built-in event procedures are declared
      as Private. Subs that are declared as Private do
      not show up in the Tools | Macro | Macros list,
      and private functions are not available for use as
      UDFs.

AmeetZ Academy - An Easy Learning Source
Variables and Data Types
•    A variable is simply a named storage location in your computer’s memory.
•    You have lots of flexibility in naming your variables, so make the variable
•    names as descriptive as possible. You assign a value to a variable using
•    the equal sign operator. (More about this later in the “Using Assignment
•    Statements” section.)
•    The name of a variable:
    Must begin with a letter
    Cannot have a period (remember that we use the period to set a property; in
     other words the period is an operator)
    Can have up to 255 characters. Please, just because it is allowed, don't use
     255 characters.
    Must be unique inside of the procedure or the module it is used in (we will
     learn what a module is)
    Once a variable has a name, you can use it as you see fit.


AmeetZ Academy - An Easy Learning Source

Recommended for you

Excel VBA programming basics
Excel VBA programming basicsExcel VBA programming basics
Excel VBA programming basics

Excel VBA programming basics: a 2-hour tutorial to learn from scratch (presented in May 2017 in XJTLU)

excel vbavisual basic for applicationsexcel
Excel Macro Magic
Excel Macro MagicExcel Macro Magic
Excel Macro Magic

This is a slide deck I created for Mike Thomas as an introduction to his presentation for MacBites Learning - Excel Macro Magic. A video of the presentation is available from http://macbiteslearning.co.uk/excel-macro-magic-webinar-recording/

excelmicrosoft officemicrosoft excel
Excel Top 10 formula For The Beginners
Excel Top 10 formula For The BeginnersExcel Top 10 formula For The Beginners
Excel Top 10 formula For The Beginners

MS Excel is one of the most popular data analytics software in the world. There are many uses of MS Excel. Here in this PPT we are going to share with you the widely used top 10 Excel formula to perform hundreds of tasks in excel. Watch the PPT till the end to explore all these formulas.

excelms excelmicrosoft
• Why we use variables
   • Excel will still allow us to run our code without using
     variables, it is not a must! But having said this it is
     very bad programming to not use variables. You could
     quite easily just assign a value, string or whatever
     each time you need it, but it would mean:
      1) Your code would become hard to follow (even for
      yourself)
      2) Excel would constantly need to look for the value
      elsewhere.
      3) Editing your code would become awkward.


AmeetZ Academy - An Easy Learning Source
Example of Variable




        Code without Declaring Variable                 Code with Declaring Variable

   From the above screens, you can see Range(“A1:A6”) is been declared as “ameetzz” to
   have consistent code.

AmeetZ Academy - An Easy Learning Source
•   Variables can be declared as any one of the following data types:

    Byte data type

    A data type used to hold positive integer numbers ranging from 0 to 255. Byte variables are stored as
    single, unsigned 8-bit (1-byte) numbers.

    Boolean data type

    A data type with only two possible values, True (-1) or False (0). Boolean variables are stored as 16-bit
    (2-byte) numbers.

    Integer data type

    A data type that holds integer variables stored as 2-byte whole numbers in the range -32,768 to 32,767.
    The Integer data type is also used to represent enumerated values. The percent sign (%) type-
    declaration character represents an Integer in Visual Basic.

    Long data type

    A 4-byte integer ranging in value from -2,147,483,648 to 2,147,483,647. The ampersand (&) type-
    declaration character represents a Long in Visual Basic.


AmeetZ Academy - An Easy Learning Source
Currency data type
      A data type with a range of -922,337,203,685,477.5808 to
      922,337,203,685,477.5807. Use this data type for calculations
      involving money and for fixed-point calculations where accuracy is
      particularly important. The at sign (@) type-declaration character
      represents Currency in Visual Basic.
      Single data type
      A data type that stores single-precision floating-point variables as 32-
      bit (2-byte) floating-point numbers, ranging in value from -
      3.402823E38 to -1.401298E-45 for negative values, and 1.401298E-
      45 to 3.402823E38 for positive values. The exclamation point (!)
      type-declaration character represents a Single in Visual Basic.
      Double data type
      A data type that holds double-precision floating-point numbers as
      64-bit numbers in the range -1.79769313486232E308 to -
      4.94065645841247E-324 for negative values; 4.94065645841247E-
      324 to 1.79769313486232E308 for positive values. The number sign
      (#) type-declaration character represents the Double in Visual Basic.


AmeetZ Academy - An Easy Learning Source

Recommended for you

Excel for beginner
Excel for beginnerExcel for beginner
Excel for beginner

Excel is a spreadsheet program used to store and manipulate data. It consists of workbooks containing worksheets with rows and columns that intersect to form cells. The basic Excel features include functions, auto fill, charts, and pivot tables. Shortcut keys allow quick navigation between tabs, selecting ranges, editing cells, and common commands like save, print, open and close. The document provides an overview of Excel and its key components along with examples of functions and commonly used shortcut keys.

exceldataoffice
Ms excel
Ms excelMs excel
Ms excel

Microsoft Excel is a component of MS Office used to enter, analyze, and present quantitative data. It uses a spreadsheet format laid out in a grid of rows and columns. Excel is commonly used in business for tasks like budgeting, inventory management, and decision making. The Excel window interface includes elements like the ribbon, tabs, quick access toolbar, worksheet, formula bar, and status bar that allow the user to navigate, enter data and formulas, and view information. Formulas in Excel use operators to calculate and return values based on cell data.

Excel-VBA
Excel-VBAExcel-VBA
Excel-VBA

This document provides an overview of Excel Visual Basic for Applications (VBA). It begins with an introduction to VBA and its uses. It then discusses how to record macros to automate repetitive tasks in Excel. The document explains the differences between subroutines and functions in VBA. It also provides instructions for using the Goal Seek and Solver tools in Excel for modeling and optimization. The document concludes by offering to answer any questions.

excelvbamacros
Date data type
   A data type used to store dates and times as a real number. Date variables are
   stored as 64-bit (8-byte) numbers. The value to the left of the decimal represents a
   date, and the value to the right of the decimal represents a time.
   String data type
   A data type consisting of a sequence of contiguous characters that represent the
   characters themselves rather than their numeric values. A String can include
   letters, numbers, spaces, and punctuation. The String data type can store fixed-
   length strings ranging in length from 0 to approximately 63K characters and
   dynamic strings ranging in length from 0 to approximately 2 billion characters. The
   dollar sign ($) type-declaration character represents a String in Visual Basic.
   Object data type
   A data type that represents any Object reference. Object variables are stored as 32-
   bit (4-byte) addresses that refer to objects. Variant data type A special data type
   that can contain numeric, string, or date data as well as the special values Empty
   and Null. The Variant data type has a numeric storage size of 16 bytes and can
   contain data up to the range of a Decimal, or a character storage size of 22 bytes
   (plus string length), and can store any character text. The VarType function defines
   how the data in a Variant is treated. All variables become Variant data types if not
   explicitly declared as some other data type.

AmeetZ Academy - An Easy Learning Source
Next Class we will discuss , all Data Types with
       Examples

       Now we slowly are entering into coding hence
       be prompt to the classes




AmeetZ Academy - An Easy Learning Source

More Related Content

What's hot

MACROS excel
MACROS excelMACROS excel
MACROS excel
Zenobia Sukhia
 
Microsoft Excel - Macros
Microsoft Excel - MacrosMicrosoft Excel - Macros
Microsoft Excel - Macros
Eladio Jose Abquina
 
VBA - Macro For Ms.Excel
VBA - Macro For Ms.ExcelVBA - Macro For Ms.Excel
VBA - Macro For Ms.Excel
C-Train Learning Point
 
Using macros in microsoft excel part 1
Using macros in microsoft excel   part 1Using macros in microsoft excel   part 1
Using macros in microsoft excel part 1
Er. Nawaraj Bhandari
 
Excel macro
Excel macroExcel macro
Excel macro
kundanpgcil
 
Introduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosIntroduction To Excel 2007 Macros
Introduction To Excel 2007 Macros
Excel
 
Excel VBA programming basics
Excel VBA programming basicsExcel VBA programming basics
Excel VBA programming basics
Hang Dong
 
Excel Macro Magic
Excel Macro MagicExcel Macro Magic
Excel Macro Magic
Elaine Giles
 
Excel Top 10 formula For The Beginners
Excel Top 10 formula For The BeginnersExcel Top 10 formula For The Beginners
Excel Top 10 formula For The Beginners
Stat Analytica
 
Excel for beginner
Excel for beginnerExcel for beginner
Excel for beginner
Shashank Jain
 
Ms excel
Ms excelMs excel
Excel-VBA
Excel-VBAExcel-VBA
Excel-VBA
DHRUYEN HADIYA
 
Learn Excel Macro
Learn Excel Macro  Learn Excel Macro
Learn Excel Macro
AbhisheK Kumar Rajoria
 
Windowforms controls c#
Windowforms controls c#Windowforms controls c#
Windowforms controls c#
prabhu rajendran
 
Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table
Alomgir Hossain
 
1.1 introduction to small basic
1.1   introduction to small basic1.1   introduction to small basic
1.1 introduction to small basic
allenbailey
 
Microsoft word - teaching slides
Microsoft word  - teaching slidesMicrosoft word  - teaching slides
Microsoft word - teaching slides
Miss-Short
 
Excel module 1 ppt presentation
Excel module 1 ppt presentationExcel module 1 ppt presentation
Excel module 1 ppt presentation
dgdotson
 
Excel lesson01
Excel lesson01Excel lesson01
Excel lesson01
Erik Hardiyanto
 
Advanced Excel ppt
Advanced Excel pptAdvanced Excel ppt
Advanced Excel ppt
Sudipta Mazumder
 

What's hot (20)

MACROS excel
MACROS excelMACROS excel
MACROS excel
 
Microsoft Excel - Macros
Microsoft Excel - MacrosMicrosoft Excel - Macros
Microsoft Excel - Macros
 
VBA - Macro For Ms.Excel
VBA - Macro For Ms.ExcelVBA - Macro For Ms.Excel
VBA - Macro For Ms.Excel
 
Using macros in microsoft excel part 1
Using macros in microsoft excel   part 1Using macros in microsoft excel   part 1
Using macros in microsoft excel part 1
 
Excel macro
Excel macroExcel macro
Excel macro
 
Introduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosIntroduction To Excel 2007 Macros
Introduction To Excel 2007 Macros
 
Excel VBA programming basics
Excel VBA programming basicsExcel VBA programming basics
Excel VBA programming basics
 
Excel Macro Magic
Excel Macro MagicExcel Macro Magic
Excel Macro Magic
 
Excel Top 10 formula For The Beginners
Excel Top 10 formula For The BeginnersExcel Top 10 formula For The Beginners
Excel Top 10 formula For The Beginners
 
Excel for beginner
Excel for beginnerExcel for beginner
Excel for beginner
 
Ms excel
Ms excelMs excel
Ms excel
 
Excel-VBA
Excel-VBAExcel-VBA
Excel-VBA
 
Learn Excel Macro
Learn Excel Macro  Learn Excel Macro
Learn Excel Macro
 
Windowforms controls c#
Windowforms controls c#Windowforms controls c#
Windowforms controls c#
 
Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table
 
1.1 introduction to small basic
1.1   introduction to small basic1.1   introduction to small basic
1.1 introduction to small basic
 
Microsoft word - teaching slides
Microsoft word  - teaching slidesMicrosoft word  - teaching slides
Microsoft word - teaching slides
 
Excel module 1 ppt presentation
Excel module 1 ppt presentationExcel module 1 ppt presentation
Excel module 1 ppt presentation
 
Excel lesson01
Excel lesson01Excel lesson01
Excel lesson01
 
Advanced Excel ppt
Advanced Excel pptAdvanced Excel ppt
Advanced Excel ppt
 

Viewers also liked

Google Analytics Overview
Google Analytics OverviewGoogle Analytics Overview
Google Analytics Overview
Anvil Media, Inc.
 
Up and running with VBA in Excel Certificate of Completion
Up and running with VBA in Excel Certificate of CompletionUp and running with VBA in Excel Certificate of Completion
Up and running with VBA in Excel Certificate of Completion
Damien Asseya
 
Vba Class Level 1
Vba Class Level 1Vba Class Level 1
Vba Class Level 1
Ben Miu CIM® FCSI A+
 
Introduction To Predictive Analytics Part I
Introduction To Predictive Analytics   Part IIntroduction To Predictive Analytics   Part I
Introduction To Predictive Analytics Part I
jayroy
 
Google Analytics
Google AnalyticsGoogle Analytics
Google Analytics
Rohan Dighe
 
Predictive Analytics - An Overview
Predictive Analytics - An OverviewPredictive Analytics - An Overview
Predictive Analytics - An Overview
MachinePulse
 
Excel ch10
Excel ch10Excel ch10
Excel ch10
Kristin Harrison
 
Google Analytics 101 for Business - How to Get Started With Google Analytics
Google Analytics 101 for Business - How to Get Started With Google AnalyticsGoogle Analytics 101 for Business - How to Get Started With Google Analytics
Google Analytics 101 for Business - How to Get Started With Google Analytics
Jeff Sauer
 
An introduction to Google Analytics
An introduction to Google AnalyticsAn introduction to Google Analytics
An introduction to Google Analytics
Joris Roebben
 
Lean Analytics Cycle
Lean Analytics CycleLean Analytics Cycle
Lean Analytics Cycle
Hiten Shah
 
MS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATION
Mridul Bansal
 

Viewers also liked (11)

Google Analytics Overview
Google Analytics OverviewGoogle Analytics Overview
Google Analytics Overview
 
Up and running with VBA in Excel Certificate of Completion
Up and running with VBA in Excel Certificate of CompletionUp and running with VBA in Excel Certificate of Completion
Up and running with VBA in Excel Certificate of Completion
 
Vba Class Level 1
Vba Class Level 1Vba Class Level 1
Vba Class Level 1
 
Introduction To Predictive Analytics Part I
Introduction To Predictive Analytics   Part IIntroduction To Predictive Analytics   Part I
Introduction To Predictive Analytics Part I
 
Google Analytics
Google AnalyticsGoogle Analytics
Google Analytics
 
Predictive Analytics - An Overview
Predictive Analytics - An OverviewPredictive Analytics - An Overview
Predictive Analytics - An Overview
 
Excel ch10
Excel ch10Excel ch10
Excel ch10
 
Google Analytics 101 for Business - How to Get Started With Google Analytics
Google Analytics 101 for Business - How to Get Started With Google AnalyticsGoogle Analytics 101 for Business - How to Get Started With Google Analytics
Google Analytics 101 for Business - How to Get Started With Google Analytics
 
An introduction to Google Analytics
An introduction to Google AnalyticsAn introduction to Google Analytics
An introduction to Google Analytics
 
Lean Analytics Cycle
Lean Analytics CycleLean Analytics Cycle
Lean Analytics Cycle
 
MS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATION
 

Similar to E learning excel vba programming lesson 3

Unit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programmingUnit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programming
Abha Damani
 
Introduction to Visual Basic
Introduction to Visual Basic Introduction to Visual Basic
I x scripting
I x scriptingI x scripting
I x scripting
Alex do Amaral Dias
 
c#.pptx
c#.pptxc#.pptx
Apex code (Salesforce)
Apex code (Salesforce)Apex code (Salesforce)
Apex code (Salesforce)
Mohammed Safwat Abu Kwaik
 
C#
C#C#
Java platform
Java platformJava platform
Java platform
Visithan
 
C question
C questionC question
C question
Kuntal Bhowmick
 
classVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptxclassVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptx
ssusere336f4
 
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGEINTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
RathnaM16
 
classVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptxclassVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptx
MaaReddySanjiv
 
VB.net
VB.netVB.net
VB.net
PallaviKadam
 
Getting started with CATIA V5 Macros
Getting started with CATIA V5 MacrosGetting started with CATIA V5 Macros
Getting started with CATIA V5 Macros
Emmett Ross
 
PRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdfPRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdf
jaymaraltamera
 
Pc module1
Pc module1Pc module1
Pc module1
SANTOSH RATH
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
Shanmuganathan C
 
73d32 session1 c++
73d32 session1 c++73d32 session1 c++
73d32 session1 c++
Mukund Trivedi
 
VBA
VBAVBA
C programming session7
C programming  session7C programming  session7
C programming session7
Keroles karam khalil
 
C programming session7
C programming  session7C programming  session7
C programming session7
Keroles karam khalil
 

Similar to E learning excel vba programming lesson 3 (20)

Unit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programmingUnit 1 introduction to visual basic programming
Unit 1 introduction to visual basic programming
 
Introduction to Visual Basic
Introduction to Visual Basic Introduction to Visual Basic
Introduction to Visual Basic
 
I x scripting
I x scriptingI x scripting
I x scripting
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Apex code (Salesforce)
Apex code (Salesforce)Apex code (Salesforce)
Apex code (Salesforce)
 
C#
C#C#
C#
 
Java platform
Java platformJava platform
Java platform
 
C question
C questionC question
C question
 
classVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptxclassVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptx
 
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGEINTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
 
classVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptxclassVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptx
 
VB.net
VB.netVB.net
VB.net
 
Getting started with CATIA V5 Macros
Getting started with CATIA V5 MacrosGetting started with CATIA V5 Macros
Getting started with CATIA V5 Macros
 
PRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdfPRELIM-Lesson-2.pdf
PRELIM-Lesson-2.pdf
 
Pc module1
Pc module1Pc module1
Pc module1
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
 
73d32 session1 c++
73d32 session1 c++73d32 session1 c++
73d32 session1 c++
 
VBA
VBAVBA
VBA
 
C programming session7
C programming  session7C programming  session7
C programming session7
 
C programming session7
C programming  session7C programming  session7
C programming session7
 

More from Vijay Perepa

Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training framework
Vijay Perepa
 
Add picture to comment
Add picture to commentAdd picture to comment
Add picture to comment
Vijay Perepa
 
Excel short cut series function keys
Excel short cut series   function keysExcel short cut series   function keys
Excel short cut series function keys
Vijay Perepa
 
PowerPoint Info-Graphics
PowerPoint Info-GraphicsPowerPoint Info-Graphics
PowerPoint Info-Graphics
Vijay Perepa
 
Types of charts in Excel and How to use them
Types of charts in Excel and How to use themTypes of charts in Excel and How to use them
Types of charts in Excel and How to use them
Vijay Perepa
 
Pivot table essential learning 1
Pivot table   essential learning 1Pivot table   essential learning 1
Pivot table essential learning 1
Vijay Perepa
 
Pivot table essential learning 2
Pivot table   essential learning 2Pivot table   essential learning 2
Pivot table essential learning 2
Vijay Perepa
 
Modeling in microsoft excel
Modeling in microsoft excelModeling in microsoft excel
Modeling in microsoft excel
Vijay Perepa
 
Understanding excel’s error values
Understanding excel’s error valuesUnderstanding excel’s error values
Understanding excel’s error values
Vijay Perepa
 
Excel training commands not in ribbon
Excel training   commands not in ribbonExcel training   commands not in ribbon
Excel training commands not in ribbon
Vijay Perepa
 
E learning excel vba programming lesson 5
E learning excel vba programming  lesson 5E learning excel vba programming  lesson 5
E learning excel vba programming lesson 5
Vijay Perepa
 
E learning excel vba programming lesson 4
E learning excel vba programming  lesson 4E learning excel vba programming  lesson 4
E learning excel vba programming lesson 4
Vijay Perepa
 
Pivot table
Pivot tablePivot table
Pivot table
Vijay Perepa
 
Power point short cut keys
Power point short cut keysPower point short cut keys
Power point short cut keys
Vijay Perepa
 
Understanding excel’s error values
Understanding excel’s error valuesUnderstanding excel’s error values
Understanding excel’s error values
Vijay Perepa
 
Excel information formulae par ii ameet z academy
Excel information formulae par ii  ameet z academyExcel information formulae par ii  ameet z academy
Excel information formulae par ii ameet z academy
Vijay Perepa
 
Excel information formulae ameet z academy
Excel information formulae   ameet z academyExcel information formulae   ameet z academy
Excel information formulae ameet z academy
Vijay Perepa
 
Excel text formulae ameet z academy
Excel text formulae   ameet z academyExcel text formulae   ameet z academy
Excel text formulae ameet z academy
Vijay Perepa
 
E-Learning from Ameetz (ISERROR formula)
E-Learning from Ameetz (ISERROR formula)E-Learning from Ameetz (ISERROR formula)
E-Learning from Ameetz (ISERROR formula)
Vijay Perepa
 
E learning excel short cut keys
E learning excel short cut keysE learning excel short cut keys
E learning excel short cut keys
Vijay Perepa
 

More from Vijay Perepa (20)

Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training framework
 
Add picture to comment
Add picture to commentAdd picture to comment
Add picture to comment
 
Excel short cut series function keys
Excel short cut series   function keysExcel short cut series   function keys
Excel short cut series function keys
 
PowerPoint Info-Graphics
PowerPoint Info-GraphicsPowerPoint Info-Graphics
PowerPoint Info-Graphics
 
Types of charts in Excel and How to use them
Types of charts in Excel and How to use themTypes of charts in Excel and How to use them
Types of charts in Excel and How to use them
 
Pivot table essential learning 1
Pivot table   essential learning 1Pivot table   essential learning 1
Pivot table essential learning 1
 
Pivot table essential learning 2
Pivot table   essential learning 2Pivot table   essential learning 2
Pivot table essential learning 2
 
Modeling in microsoft excel
Modeling in microsoft excelModeling in microsoft excel
Modeling in microsoft excel
 
Understanding excel’s error values
Understanding excel’s error valuesUnderstanding excel’s error values
Understanding excel’s error values
 
Excel training commands not in ribbon
Excel training   commands not in ribbonExcel training   commands not in ribbon
Excel training commands not in ribbon
 
E learning excel vba programming lesson 5
E learning excel vba programming  lesson 5E learning excel vba programming  lesson 5
E learning excel vba programming lesson 5
 
E learning excel vba programming lesson 4
E learning excel vba programming  lesson 4E learning excel vba programming  lesson 4
E learning excel vba programming lesson 4
 
Pivot table
Pivot tablePivot table
Pivot table
 
Power point short cut keys
Power point short cut keysPower point short cut keys
Power point short cut keys
 
Understanding excel’s error values
Understanding excel’s error valuesUnderstanding excel’s error values
Understanding excel’s error values
 
Excel information formulae par ii ameet z academy
Excel information formulae par ii  ameet z academyExcel information formulae par ii  ameet z academy
Excel information formulae par ii ameet z academy
 
Excel information formulae ameet z academy
Excel information formulae   ameet z academyExcel information formulae   ameet z academy
Excel information formulae ameet z academy
 
Excel text formulae ameet z academy
Excel text formulae   ameet z academyExcel text formulae   ameet z academy
Excel text formulae ameet z academy
 
E-Learning from Ameetz (ISERROR formula)
E-Learning from Ameetz (ISERROR formula)E-Learning from Ameetz (ISERROR formula)
E-Learning from Ameetz (ISERROR formula)
 
E learning excel short cut keys
E learning excel short cut keysE learning excel short cut keys
E learning excel short cut keys
 

Recently uploaded

BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptxBRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
kambal1234567890
 
The basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptxThe basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptx
heathfieldcps1
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
ibtesaam huma
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
Nguyen Thanh Tu Collection
 
How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
Celine George
 
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
HappieMontevirgenCas
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
Celine George
 
"DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ...
"DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ..."DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ...
"DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ...
thanhluan21
 
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
PECB
 
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Murugan Solaiyappan
 
NLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptxNLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptx
MichelleDeLaCruz93
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
EduSkills OECD
 
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
thanhluan21
 
How to Install Theme in the Odoo 17 ERP
How to  Install Theme in the Odoo 17 ERPHow to  Install Theme in the Odoo 17 ERP
How to Install Theme in the Odoo 17 ERP
Celine George
 
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
Dr Vijay Vishwakarma
 
Split Shifts From Gantt View in the Odoo 17
Split Shifts From Gantt View in the  Odoo 17Split Shifts From Gantt View in the  Odoo 17
Split Shifts From Gantt View in the Odoo 17
Celine George
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Celine George
 
Front Desk Management in the Odoo 17 ERP
Front Desk  Management in the Odoo 17 ERPFront Desk  Management in the Odoo 17 ERP
Front Desk Management in the Odoo 17 ERP
Celine George
 
Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?
Rakesh Jalan
 
No, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalismNo, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalism
Paul Bradshaw
 

Recently uploaded (20)

BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptxBRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
 
The basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptxThe basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptx
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
 
How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
 
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
 
"DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ...
"DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ..."DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ...
"DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY ...
 
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
 
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
 
NLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptxNLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptx
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
 
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
 
How to Install Theme in the Odoo 17 ERP
How to  Install Theme in the Odoo 17 ERPHow to  Install Theme in the Odoo 17 ERP
How to Install Theme in the Odoo 17 ERP
 
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
 
Split Shifts From Gantt View in the Odoo 17
Split Shifts From Gantt View in the  Odoo 17Split Shifts From Gantt View in the  Odoo 17
Split Shifts From Gantt View in the Odoo 17
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
 
Front Desk Management in the Odoo 17 ERP
Front Desk  Management in the Odoo 17 ERPFront Desk  Management in the Odoo 17 ERP
Front Desk Management in the Odoo 17 ERP
 
Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?
 
No, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalismNo, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalism
 

E learning excel vba programming lesson 3

  • 1. Excel VBA Programming 3rd Session AmeetZ Academy - An Easy Learning Source
  • 2. Procedures Let us refresh our knowledge on Procedures which we learnt in Last session. A procedure is an assignment we give to VBScript to perform or to complete, the normal flow of the program/application. There are two kinds of procedures in VBScript: A sub procedure and a function. The difference between these two is their execution and Coding ( Programming) based on your goal. AmeetZ Academy - An Easy Learning Source
  • 3. VBA Procedures – Sub and Function Function is simply that a function can return a value to the procedure that called it. That procedure can be another Function, a Sub or even to a worksheet cell. When it is done using a worksheet formula, the Function is known as a User Defined Function, or UDF. Potentially all Functions are UDFs. Sub procedures are just like Functions, except that they do not return a value in the same way that a Function does. They can accept arguments, or not, just like a Function does. AmeetZ Academy - An Easy Learning Source
  • 4. VBA Procedures – Examples • Sub Procedures A sub procedure is a section of code that carries an assignment but doesn't give back a result. To create a sub procedure, start the section of code with the Sub keyword followed by a name for the sub procedure. To differentiate the name of the sub procedure with any other regular name, it must be followed by an opening and closing parentheses. The section of the sub procedure code closes with End Sub as follows: Sub Macro1() ' ‘ Macro1 Macro ActiveCell.FormulaR1C1 = "123" Range("A2").Select End Sub AmeetZ Academy - An Easy Learning Source
  • 5. VBA Procedures – Examples contd.. • Creating a Function A function is an assignment that a piece of code can take care for the functionality of a database. The main difference between a sub procedure and a function procedure is that a function can return a value. A function is created like a sub procedure with a few more rules. The creation of function starts with the Function keyword and closes with End Function. Here is an example: Function FindFullName() End Function AmeetZ Academy - An Easy Learning Source
  • 6. PROCEDURES: PUBLIC OR PRIVATE By default all procedures are “Public”. That is to say that they can pretty much be used from anywhere in the project. For Sub procedures, it also means that they show up in the Tools | Macro | Macros list as available to be run through that interface ;and For Functions, public functions can be used as UDFs. AmeetZ Academy - An Easy Learning Source
  • 7. • But sometimes we don’t want the user to have access to a procedure, or don’t want other modules to be able to use a procedure in another module. • For those times, we can make a procedure only accessible from within the code module that it exists in by preceding its declaration with the word Private. • We , here, notice that all of the Workbook and Worksheet built-in event procedures are declared as Private. Subs that are declared as Private do not show up in the Tools | Macro | Macros list, and private functions are not available for use as UDFs. AmeetZ Academy - An Easy Learning Source
  • 8. Variables and Data Types • A variable is simply a named storage location in your computer’s memory. • You have lots of flexibility in naming your variables, so make the variable • names as descriptive as possible. You assign a value to a variable using • the equal sign operator. (More about this later in the “Using Assignment • Statements” section.) • The name of a variable: Must begin with a letter Cannot have a period (remember that we use the period to set a property; in other words the period is an operator) Can have up to 255 characters. Please, just because it is allowed, don't use 255 characters. Must be unique inside of the procedure or the module it is used in (we will learn what a module is) Once a variable has a name, you can use it as you see fit. AmeetZ Academy - An Easy Learning Source
  • 9. • Why we use variables • Excel will still allow us to run our code without using variables, it is not a must! But having said this it is very bad programming to not use variables. You could quite easily just assign a value, string or whatever each time you need it, but it would mean: 1) Your code would become hard to follow (even for yourself) 2) Excel would constantly need to look for the value elsewhere. 3) Editing your code would become awkward. AmeetZ Academy - An Easy Learning Source
  • 10. Example of Variable Code without Declaring Variable Code with Declaring Variable From the above screens, you can see Range(“A1:A6”) is been declared as “ameetzz” to have consistent code. AmeetZ Academy - An Easy Learning Source
  • 11. Variables can be declared as any one of the following data types: Byte data type A data type used to hold positive integer numbers ranging from 0 to 255. Byte variables are stored as single, unsigned 8-bit (1-byte) numbers. Boolean data type A data type with only two possible values, True (-1) or False (0). Boolean variables are stored as 16-bit (2-byte) numbers. Integer data type A data type that holds integer variables stored as 2-byte whole numbers in the range -32,768 to 32,767. The Integer data type is also used to represent enumerated values. The percent sign (%) type- declaration character represents an Integer in Visual Basic. Long data type A 4-byte integer ranging in value from -2,147,483,648 to 2,147,483,647. The ampersand (&) type- declaration character represents a Long in Visual Basic. AmeetZ Academy - An Easy Learning Source
  • 12. Currency data type A data type with a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807. Use this data type for calculations involving money and for fixed-point calculations where accuracy is particularly important. The at sign (@) type-declaration character represents Currency in Visual Basic. Single data type A data type that stores single-precision floating-point variables as 32- bit (2-byte) floating-point numbers, ranging in value from - 3.402823E38 to -1.401298E-45 for negative values, and 1.401298E- 45 to 3.402823E38 for positive values. The exclamation point (!) type-declaration character represents a Single in Visual Basic. Double data type A data type that holds double-precision floating-point numbers as 64-bit numbers in the range -1.79769313486232E308 to - 4.94065645841247E-324 for negative values; 4.94065645841247E- 324 to 1.79769313486232E308 for positive values. The number sign (#) type-declaration character represents the Double in Visual Basic. AmeetZ Academy - An Easy Learning Source
  • 13. Date data type A data type used to store dates and times as a real number. Date variables are stored as 64-bit (8-byte) numbers. The value to the left of the decimal represents a date, and the value to the right of the decimal represents a time. String data type A data type consisting of a sequence of contiguous characters that represent the characters themselves rather than their numeric values. A String can include letters, numbers, spaces, and punctuation. The String data type can store fixed- length strings ranging in length from 0 to approximately 63K characters and dynamic strings ranging in length from 0 to approximately 2 billion characters. The dollar sign ($) type-declaration character represents a String in Visual Basic. Object data type A data type that represents any Object reference. Object variables are stored as 32- bit (4-byte) addresses that refer to objects. Variant data type A special data type that can contain numeric, string, or date data as well as the special values Empty and Null. The Variant data type has a numeric storage size of 16 bytes and can contain data up to the range of a Decimal, or a character storage size of 22 bytes (plus string length), and can store any character text. The VarType function defines how the data in a Variant is treated. All variables become Variant data types if not explicitly declared as some other data type. AmeetZ Academy - An Easy Learning Source
  • 14. Next Class we will discuss , all Data Types with Examples Now we slowly are entering into coding hence be prompt to the classes AmeetZ Academy - An Easy Learning Source