microsoft excel & vba day 3. objectives for today: you will be able to… …implement functions...
TRANSCRIPT
Microsoft Excel & VBADay 3
Objectives for today:
You will be able to…• …implement functions in Excel.• …write simple functions using VBA.
Format of functions within VBA
Function Function_Name(variables)
…
Function_Name = …
End Function
Challenge #1
• Write a function in VBA to calculate the area of a triangle.
Challenge #2
• Write a function in VBA to calculate windchill.
ASCII
• American Standard Code for Information Interchange
• Developed in the 1960’s• 128 characters• 33 are non-printing control
characters
ASCII
• American Standard Code for Information Interchange
• Developed in the 1960’s• 128 characters• 33 are non-printing control
characters
Using functions from Excel
• WorksheetFunction.FunctionName(…)
Select Case
Select Case ThingToCheck
Case ……
Case …
…
…
End Select
Challenge #3
• Write a function in VBA to generate passwords.
Objectives for today:
You will be able to…• …implement functions in Excel.• …write simple functions using VBA.