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

functions

ResolvedVersion 2003

Maria has attended:
Excel VBA Intro Intermediate course

Functions

Can I use functions in the VBA coding ? Things like STDVAR, NPV etc... and does it work the same way in term of data input/setup?

Is there a list of maths functions somewhere I can use in my code?
Thanks.
M

Edited on Thu 13 May 2010, 11:21

RE: functions

Hi Maria

Thanks for your question

You can indeed use excel functions in your VBA coding. They are contained in the worksheetfunction object. You place the function's arguments in the normal way.

e.g.

worksheetfunction.Sum(Range("A1:A20"))


Not all worksheet functions are available. You can find a complete list by typing "worksheetfunction object members" into vba's help tool.

Hope this helps

Regards

Stephen

Thu 20 May 2010: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Finding cells that have data restrictions

Click anywhere on the worksheet.
On the Edit menu, click Go To.
Click Special.
Click Data validation.
Click All.

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