Your SlideShare is downloading. ×
E learning excel vba programming  lesson 4
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

E learning excel vba programming lesson 4

862
views

Published on

Declaring Variables , Data Types and Examples are discussed in this session. For Complete powerpoint and related Free online class visit www.ameetz.com

Declaring Variables , Data Types and Examples are discussed in this session. For Complete powerpoint and related Free online class visit www.ameetz.com

Published in: Education, Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
862
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
52
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Excel VBA - 4th Session End Sub Sub macro1()
  • 2. Declaring Variables A Variable is used to store temporary information that is used for execution within the Procedure, Module or Workbook. Before we go into some detail of Variables, there are a few important rules that you must know about.• A Variable name must Start with a letter and not a number. Numbers can be included within the name, but not as the first character.• A Variable name can be no longer than 255 characters.• A Variable name cannot be the same as any one of Excels key words. In other words you cannot name a Variable with such names as Sheet, Worksheet etc.• All Variables must consist of one continuous string of characters only. You can separate words by either capitalising the first letter of each word, or by using the underscore characters if you prefer.
  • 3. List of Data Types
  • 4. Byte Data Type Byte is VBAs smallest numeric data type and holds a (natural) numeric value from 0 to 255. In this data type only positive numbers to be used. Otherwise VBA will return with an error.Example for Byte Data Type :Sub atz()Dim Value As ByteValue = 246End Sub We are going discuss more about Byte and cbyte() in future lessons
  • 5. AmeetZ AcademyFor Complete PPT, visit www.ameetz.com Or write to rama@ameetz.com