functions
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Functions

Functions

resolvedResolved · Low Priority · Version 2003

replyReply Mon 20 Jul 2009, 13:49Delegate Vishal said...

Functions

Please explain the meaning functions: why they are used, difference with procedures

For upcoming training course dates see: Pricing & availability

replyReply Fri 24 Jul 2009, 11:54Trainer Stephen said...

RE: Functions

Hi Vishal

Thank you for your question.

There are two types of procedures, function procedures and sub procedures.

Function procedures differ from sub procedures in that they return a value. As a result, they take information in the form of arguments and process that data to generate a value. Function procedures cannot be used to modify the structure of a worksheet, e.g. formatting fonts etc.

Sub procedures have more general uses, and can be used to manipulate the structure of a workbook. Function procedures are often called from within sub procedures.

Regards

Stephen

 

Please browse our web site to find out more about
advanced+excel+course and other Microsoft training courses.

Excel tip:

Naming and Using Constants

Constants make calculations easier so worksheets are more easily understood. Constant values also need to be given relevant and memorably names. It is also easier to change the value of a constant.

For example:
Instead of entering 17.5% in each cell when you generate a VAT amount you could name a Constant "VAT" and assigning a "0.175" value to it. To do this:

From the 'Insert' menu select 'Name', then select 'Define'.

Enter the constant

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard