Find value in range copy nth cell value to another sheet

  • Hi


    Trying to write a macro to search a range in column A for a string and copy the nth cell across in that row to another sheet based on the month. So the macro will search for a value, if it is found and the month is February it will copy the value in the second column to another sheet.


    I have the macro searching but can only get it to copy the first column. I can't seem to tell it to copy the nth column.


    This is code I have found from other sites to copy the data.



    Thanks in advance.

  • Re: Find value in range copy nth cell value to another sheet


    Hi and welcome to the forum.


    Take a look at Offset. This will enable you to refer to a range by offsetting the desired number of rows and columns from an existing range. For example, the following refers to C2 by offset from A1:


    Code
    MsgBox Range("A1").Offset(1, 2).Address

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!