![見出し画像](https://assets.st-note.com/production/uploads/images/122052373/rectangle_large_type_2_332be33820d7d3c73b11b3cd78ae6545.png?width=1200)
memo20231118
Sub 埋込式()
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, 2).End(xlUp).Row
Range("N2:N" & Lastrow) = "=VLOOKUP(M2,$B:$D,2,FALSE)"
Range("N2:N" & Lastrow).Value = Range("N2:N" & Lastrow).Value
Range("O2:O" & Lastrow) = "=VLOOKUP(M2,$B:$D,3,FALSE)"
Range("O2:O" & Lastrow).Value = Range("O2:O" & Lastrow).Value
MsgBox "完了"
End Sub
この記事が気に入ったらサポートをしてみませんか?