Tabellab
Intermediate

Custom Functions (UDF)

Write your own worksheet functions in VBA and use them in cells just like SUM or VLOOKUP.

8 lessons 1.1 h Certificate

The first lesson is free — no account needed.

About this course

Write your own worksheet functions in VBA and use them in cells just like SUM or VLOOKUP. You learn how a Function differs from a Sub, write your first Excel UDF, handle arguments, types and error values, use Optional and ParamArray, return more than one value, and understand volatility, speed limits and sharing your UDFs.

Lessons

  1. Function vs Sub: What Actually DiffersReading11 minFree
  2. Your First Worksheet FunctionReading7 min Pro
  3. Arguments, Types and Error ValuesReading8 min Pro
  4. Optional Arguments and ParamArrayReading8 min Pro
  5. Returning More Than One ValueReading8 min Pro
  6. Volatile Functions and RecalculationReading7 min Pro
  7. Why UDFs Can Be Slow — and What They Cannot DoReading8 min Pro
  8. Sharing, Debugging and Living With Your UDFsReading7 min Pro