Hi Paresh,
The syntax is failry simple for what you want to do, but perhaps it would be 
easier done with a worksheet function.
However, if you want do it by macro, the below is an example:

Sub DoMath
Answer1 = 4 + 5
Answer2 = 4 * 5
Answer3 = 4 - 5
Answer4 = 4 / 5
End Sub

'Answer1' , 'Answer2' etc, are called variables, which means they can represent 
anything you want. In our case, they represent the answers to the 4 maths 
equations. 

Regards - Dave.
Date: Sat, 25 Apr 2009 10:29:41 +0530
Subject: $$Excel-Macros$$ **ADD/Multiply/Subtract/Divide two Numbers**
From: paresh.g.2...@gmail.com
To: excel-macros@googlegroups.com

Dear Aayush,
 
I am a beginer of Macros and please tell me how to add/subtract/multiply/divide 
two numbers in macros.
 
Regards
Paresh Gugale





_________________________________________________________________
Looking for a fresh way to share photos? Get the new Windows Live Messenger.
http://download.live.com/
--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to