You are on page 1of 1

Introduction to variables code.

Option Explicit
Dim a As Integer
Public b As Integer
Sub satya()
Dim c As Byte, d As Integer, e As Long, f As Single, g As Double, _
h As Date, i As String, j As Variant
a = a + 100
b = b + 100
c = c + 100
d = d + 100
e = 11.55
f = 110.5
g = 110.5
h = "13/06/1991"
i = "satya"
j = 13
MsgBox a, , "a"
MsgBox b, , "b"
MsgBox c, , "c"
MsgBox d, , "d"
MsgBox e, , "e"
MsgBox f, , "f"
MsgBox g, , "g"
MsgBox h, , "h"
MsgBox i, , "i"
MsgBox j, , "j"
End Sub
Sub satya1()
MsgBox a, , "a"
MsgBox b, , "b"
End Sub

You might also like