excel worksheet 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 » Excel Worksheet Functions

Excel Worksheet Functions

resolvedResolved · Low Priority · Version 2003

Robert has attended:
Excel VBA Advanced course

Excel Worksheet Functions

Can you use Excel functions within your VCBA code?

RE: Excel Worksheet Functions

Hi Robert

Sorry for the delay in responding.

I guess you mean VBA rather than VCBA which is not a programing language

The simple answer is yes you can use Worksheet functions in VBA.

The code is as follows:

Application.WorksheetFunction.<The Function>

This brings up a list of functions that can be used in VBA. For Example:

Application.WorksheetFunction.Sum(Range(Cells(10, 8), Cells(36, 8)))

which sums the numbers in column 8 from rows 10 to 36

Hopes this helps

Carlos

Wed 22 Apr 2009: 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:

Select Single Data Marker

To select a single data marker in a chart, ie line, bar or column;
After you have pressed Ctrl+Click (to select the entire chart) you can press the Up or Down arrows to select a data series, then press the Left or Right arrow to select a data point within that series.

View all Excel hints and tips


Server loaded in 0.08 secs.