Forum Discussion

1 Reply

  • lavita17 

    In the lines

        Inv_sh.Range("F2").Value = "=VLOOKUP(A2,Product_Master!B:G,4,0"
        Inv_sh.Range("G2").Value = "=VLOOKUP(A2,Product_Master!B:G,5,0"

    the closing parenthesis of the VLOOKUP function is missing. Change the lines to

        Inv_sh.Range("F2").Formula = "=VLOOKUP(A2,Product_Master!B:G,4,0)"
        Inv_sh.Range("G2").Formula = "=VLOOKUP(A2,Product_Master!B:G,5,0)"

    (I used Formula instead of Value, but that's just a preference, for clarity)

     

Resources