ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   sum by coding (https://www.excelbanter.com/new-users-excel/178019-sum-coding.html)

[email protected]

sum by coding
 
hi
i like to add the two cells by using macro and to display the result
in other cell

JE McGimpsey

sum by coding
 
One way:

Public Sub Add2Cells()
Range("C1").Value = Range("A1").Value + Range("B1").Value
End Sub



In article
,
wrote:

hi
i like to add the two cells by using macro and to display the result
in other cell



All times are GMT +1. The time now is 02:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com