엑셀, 셀의 오른쪽 빈셀에 좌측 숫자를 읽어서, 다른 시트의 값을 수식으로 가져오기

엑셀, 셀의 오른쪽 빈셀에 좌측 숫자를 읽어서, 다른 시트의 값을 수식으로 가져오기


Option Explicit Const CF = "=IFERROR(VLOOKUP((^),표1_45[[쪽수]:[명-권차]],3,0),"""")" Sub 표_수식_값() On Error GoTo ERR_RTN With Selection.ListObject.DataBodyRange With .Columns("e").Resize(, .Columns.Count - 4) On Error GoTo 0 Application.ScreenUpdating = 0 Application.Calculation = xlCalculationManual Dim n&, c As Range n = .Rows.Count For Each c In .Columns If WorksheetFunction.Count(c.Columns(0)) Then .Formula2 = Replace(CF, "(^)", c.Cells(1, 0).Address(0, 0)) .Value2 = .Value2 '// 값으로 End If Next End With: End With ERR_RTN: Application.Calculation = xlCalculationAutomatic Application.ScreenUpdating = 0 If Err Then MsgBox "현제 셀은 표가 아닙니다." & vbLf & _ "표 영역으로 이동 하거나 클릭 후 다시 실행 하세요...!" End Sub
0 보유

Meow Clicker

고양이를 클릭해 AI 대화 티켓을 얻으세요! (100클릭 = 1장)

Happiness 0 / 100
AI 분석가
안녕하세요! 왼쪽의 글 내용을 바탕으로 궁금한 점을 질문해 주세요.

질문 시 티켓 1장이 사용됩니다.