Simon has attended:
Excel VBA Intro Intermediate course
Formulas
How do I imbed formulas into VBA macro code?
RE: Formulas
Hi Simon
Thankyou for your question
I am assuming that you want to use the functions that come as standard with Excel
These functions are called worksheet functions, and are child objects of the application object. The following code uses the sum function to add up a given range of cells and insert it into cell b31
Range("b31").Value = Application.WorksheetFunction.Sum("B2:B30")
All the standard functions can be accessed in this way
Hope this is useful
Regards
Stephen