microsoft excel & vba day 3. objectives for today: you will be able to… …implement functions...

11
Microsoft Excel & VBA Day 3

Upload: basil-hill

Post on 01-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Microsoft Excel & VBADay 3

Page 2: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Objectives for today:

You will be able to…• …implement functions in Excel.• …write simple functions using VBA.

Page 3: Microsoft Excel & VBA Day 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

Page 4: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Challenge #1

• Write a function in VBA to calculate the area of a triangle.

Page 5: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Challenge #2

• Write a function in VBA to calculate windchill.

Page 6: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

ASCII

• American Standard Code for Information Interchange

• Developed in the 1960’s• 128 characters• 33 are non-printing control

characters

Page 7: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

ASCII

• American Standard Code for Information Interchange

• Developed in the 1960’s• 128 characters• 33 are non-printing control

characters

Page 8: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Using functions from Excel

• WorksheetFunction.FunctionName(…)

Page 9: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Select Case

Select Case ThingToCheck

Case ……

Case …

End Select

Page 10: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Challenge #3

• Write a function in VBA to generate passwords.

Page 11: Microsoft Excel & VBA Day 3. Objectives for today: You will be able to… …implement functions in Excel. …write simple functions using VBA

Objectives for today:

You will be able to…• …implement functions in Excel.• …write simple functions using VBA.