functions

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

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

Functions

resolvedResolved · Low Priority · Version 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:

Moving or Copying Sheets Between Workbooks in Excel 2010

Here's how to move or copy sheets between workbooks in Excel 2010:

Open the sheet you want to move or copy then on the Ribbon click the Home tab. Click Format. Under Organize Sheets, select the option Move or Copy Sheet and then choose where you want the sheet to be moved/copied to.

View all Excel hints and tips


Server loaded in 0.08 secs.