Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

custom functions

ResolvedVersion 2003

Arjuna has attended:
Excel Advanced course

Custom functions

How do you create a custom function in Visual Basic for Excel?

RE: Custom functions

Hi Arjuna,

Thank you for your question.

In order to create a Custom function in VB, go to the Visual Basic Editor (Alt+F11).

Create a new module and type Function followed by a space and the name of the function. Open brackets and enter the arguments possibly using the column headings (no spaces between words in each heading) of the figures separated by a comma.

Next line, type your function name followed by an equals sign and in brackets define what the function will actually do. Then end the function.

I hope this answers your question.

Simon

Excel tip:

Create Equations in Excel 2010

Here's how to create basic mathematical
equations in your Excel 2010 worksheet.

1) On the Ribbon, click the Insert tab
2) In the Symbols group, click the arrow next to Equation
3) Select from the equations and the equation will be inserted in a text box

Or you can create your own equation:

1) Insert and select the text box
2) On the Ribbon, click the Insert tab
3) In the Symbols group, click Equation
4) The Equation Tools Design Ribbon will now be displayed

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.