Macro that populates a cell on based on the value of another cell

  • Hi,


    I would like to run a macro that populates each cell in column M based on the value of column H for the same row. E.g. I need the macro to scan each row in column H with IF (OR(h2 = "5254", h2 = "5255"), "Yes","") in m2 then move on to the next cell till the data finishes.


    The range of data can vary week on week.


    any ideas?



    thanks very much


    x

  • Re: Macro that populates a cell on based on the value of another cell


    Maybe


    Using default references to the range so must go in the worksheet code module

Participate now!

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