Use of variables
Sub VBAClassVariableEX() 'VBA macro Code to understand the function of Variables Workbooks.Add ActiveSheet.Name = "VBAClassVariableEx" Dim i As Integer Cells(1, 1).Value = "Sr.No" For i = 2 To 12 Cells(i, 1).Value = i - 1 Next Cells(1, 2).Value = "Particular" Cells(2, 2).Value = "First Name" Cells(3, 2).Value = "Last Name" Cells(4, 2).Value = "Date of Birth" Cells(5, 2).Value = "Birth Day, Month" Cells(6, 2).Value = "Birth Year" Cells(7, 2).Value = "Years" Cells(8, 2).Value = "Months" Cells(9, 2).Value = "Days" Cells(10, 2).Value = "Hours" Cells(11, 2).Value = "Minute" Cells(12, 2).Value = "Seconds" Cells(1, 3).Value = "Details" Dim username As String Dim firstname As String Dim lastname As String Dim yearpassed As Single Dim monthpassed As Single Dim daypassed As Single Dim hourpassed As Single Dim ...