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

2002 excel microsoft training - custom function macros

Forum home » Delegate support and help forum » Microsoft Excel Training and help » 2002 excel microsoft training - Custom Function Macros

2002 excel microsoft training - Custom Function Macros

ResolvedVersion Standard

Hari has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Custom Function Macros

How to create a custom function Macros?.

RE: Custom Function Macros

Hi Hari

It was great having you on my Excel Course on Friday. Hope you had a good weekend.

To create a Custom Function

1. Tools menu, Macros, Visual Basic Editor

2. Insert menu, Module

3. Write the word 'Function' to mark the beginning then write your function name with it's arguments.

e.g. Function MyFunction (sales2000, sales 1999)

4. Write the Function Name and then write the code for the function

e.g. MyFunction = (sales2000 - sales1999) / sales1999 * 100

5. 'End Function' should mark the end of the Function

6. Save the Function and return to your Excel worksheet.

7. To use your new function either select a cell and type it directly or use the Function Wizard, selecting the category 'User Defined'.

Hope this helps

Sandy

Excel tip:

Change the Print button so it brings up the Print dialogue box

If you want to bring up the Print dialogue box to check your print settings when you hit the Print button, do the following:

1. Right-click on the toolbar that displays the Print button.

2. Select Customise.

3. Click on the Print button on the toolbar to select it, then hold the left mouse button down and drag the button towards the screen below. The button should come off the toolbar.

4. In the Customise dialogue box on your screen, select the Commands tab.

5. Select File from the Categories list, and then locate the Print... icon (looks like the normal Print button, but the word Print has three dots following it).

6. Click on the Print... icon to select it, then use your left mouse to drag and drop the icon onto the toolbar at the top of the screen.

7. Close the Customise dialogue box.

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.11 secs.