Hi all,

I am in learning phase of VBA.

My task is simple. Please refer the attached images (Image 1 and Image 2).

My cell B1 is 2, B2 is based on " i " value (initial i value is 2)

if i add B1 and B2 in B3, the output should be 10.
Until the addition becomes 10, the value of B2 have to be changed in the increment of 1 (i.e. i + 1)

I have tried a code of my own. But i am facing errors.

Please help me in resolving this.


Thanks,
Prabhu P

Image 1.PNGImage 2.PNG