• 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.

How do I put a Incremental counter in VBA

How do I put a Incremental counter in VBA

  • I dont like it

    Votes: 0 0.0%
  • dont know

    Votes: 0 0.0%

  • Total voters
    1

Lalit Mahajan

New Member
Hi All,

I have written a Macro (Copyrel) in the attached file, which is for copying the text from one cell (same row and the column varies) and pasting it in the 5th and the 10th column of the same row.

But it runs only for one row, and I have to amend the VBA code everytime for a new row.

Is there any command (or Incremental counter) which I can write in the VBA code, so that the row number gets incremented by 1 and I dont have to amend the code.

Please advise.

Thanks,
Lalit
 

Attachments

Hi All,

I have written a Macro (Copyrel) in the attached file, which is for copying the text from one cell (same row and the column varies) and pasting it in the 5th and the 10th column of the same row.

But it runs only for one row, and I have to amend the VBA code everytime for a new row.

Is there any command (or Incremental counter) which I can write in the VBA code, so that the row number gets incremented by 1 and I dont have to amend the code.

Please advise.

Thanks,
Lalit
 
Back
Top