In this tutorial, I will show you how to create a User Defined Function (VBA) in VBA. You can use these UDFs in worksheets or can call the function using VBA. These functions are useful when you want to do something that can not be done with inbuilt Excel functions.