That's how I interpreted your question and that's what the code does ... although I have assumed the range of cells in column 1 has no gaps in it
This:
works out the last row in column A with data in it. If that were, say, 6, it would be the same as:
And the loop would be:
This:
set the value of cell A1 in Sheet2 to the value in the "cell being processed".
prints it out, and:
loops around for the next value.
So, what is it that doesn't work? Does it fail because it tries to print a sheet with no data in it? Are the sheets actually called Sheet1 and Sheet2? Which cells actually have data in them? How would you like me to help you modify the script?
Bookmarks