I need help in coding the problem below in vba:
I have two groups of cells,
For the first group, I have cells(1,1) = 1, cells(1.,2) = 2, cells(1,3) = 3, and cells(1,4) = 4.
For the second group, cells(1,5) = 44, cells(1,6) = 13, cells(1,7) = 14, cells(1,8) = 23, and cells(1,9) = 34
I want to make the formula for the cells in second group = the multiplication of cells from the first group together. By choosing the cells that have matching value.
For example, cells(1,6).formula ="=cells(1,1)*cells(1,3)"
This is because cells(1,6) = 13 -----> cells(1,1) = 1 and cells(1,3) = 3
When I did try "=cells(1,1)*cells(1,3)" or somethingelse it gave me #NAME? in the cell
Could you please guide me the syntax for coding this problem?
Thank you very much
I have two groups of cells,
For the first group, I have cells(1,1) = 1, cells(1.,2) = 2, cells(1,3) = 3, and cells(1,4) = 4.
For the second group, cells(1,5) = 44, cells(1,6) = 13, cells(1,7) = 14, cells(1,8) = 23, and cells(1,9) = 34
I want to make the formula for the cells in second group = the multiplication of cells from the first group together. By choosing the cells that have matching value.
For example, cells(1,6).formula ="=cells(1,1)*cells(1,3)"
This is because cells(1,6) = 13 -----> cells(1,1) = 1 and cells(1,3) = 3
When I did try "=cells(1,1)*cells(1,3)" or somethingelse it gave me #NAME? in the cell
Could you please guide me the syntax for coding this problem?
Thank you very much