• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Excel saving data in Range(An+1)

Mateusz

New Member
Hey,

I have a macro and it saves in A2 the final result
I want to data be saved in Range(An+1) after each macro use.
So if I use macro second time it should write all data in line 3 (A3)
third time- in line 4 (A4) etc.
 
Last edited:
Hi, Mateusz!
Maybe you want to share your solution with the community, so as people who read this would have the issue or question and the solution or answer as well.
Regards!
 
I have done it in the loop.
and each time it is beeing done data is put into the cell under the previous one :)

Code:
dim n as Integer
for n=2 to 100
Range("C2" & n).Value = title
next


(100--> any number may be here)
 
Hi Mateusz, I thought your question was how to write values into different cell in 'each macro use' (write in new cell each time you run the macro). But since you are using a for loop your solution writes the values in different cells in 'single macro use'. Next time when you run the macro it writes the values into same cells.
 
Back
Top