vba
RH

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

VBA

resolvedResolved · Low Priority · Version 2003

Karen has attended:
Access Introduction course
Excel VBA Intro Intermediate course

VBA

How do I insert an equation into VBA

RE: VBA

Thank you for your question.

To enter an equation into a cell you can use two methods.

Range("A4").Formula = "=SUM(A1:A3)"

OR

Range("A4").FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)"

Regards

Laura GB

Wed 28 Jan 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:

Wrapping Text in a Cell in an Excel 2010 Workbook

When you have a lot of text you want to put in a particular cell but you can't decrease the font size to fit because the text will then become ineligible, then manually wrap the text in a cell by simply pressing ALT+ENTER.

View all Excel hints and tips


Server loaded in 0.05 secs.