I am currently trying to learn the basics of VBA and have been using the following code to work on a column of cells
How might I return the cell being referenced at each iteration of this loop?
For example, suppose cells A1 to A20 contained integers and for each of these values I wished to write the square root in cells B1 to B20. How might this be done?
Code:
For Each foo In Range("A1", "A20")
* Code *
Next
How might I return the cell being referenced at each iteration of this loop?
For example, suppose cells A1 to A20 contained integers and for each of these values I wished to write the square root in cells B1 to B20. How might this be done?