Excel macro formula adding quotes in formula causing vlookup to not work

前端 未结 3 1334
情深已故
情深已故 2020-12-04 04:26

I am trying to add a formula to a cell. The macro is adding quotations around the cell range, which causes the cell to return the #name error.

This is the code in th

3条回答
  •  长情又很酷
    2020-12-04 04:54

    You cannot mix RC and A1 style references in the same formula. Pick one and stick to it.

    "=VLOOKUP(RC[-2],Contracts!R7C1:R30C4,3,FALSE)"
    

    will work

提交回复
热议问题