2 Ó ON ERROR GOTO ERROR ¥X²{¿ù»~
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
Ó¤H«ØijÀ³ºÉ¥i¯à¤£¨Ï¥Î On Error..- Sub crosscheck_new_item()
- Application.Calculation = xlCalculationManual
- Dim i As Long
- On Error Resume Next
- Worksheets("2019 TRADING SOC NO.").Select
- If Err Then Err.Clear: GoTo error1
- For i = 2 To Range("A" & Rows.Count).End(xlUp).Row
- Worksheets("2019 TRADING SOC NO.").Range("L" & i).Value = WorksheetFunction.VLookup(Worksheets("2019 TRADING SOC NO.").Range("E" & i).Value, Worksheets("¦¨¥» (2020.09.28)").Range("D:AL"), 35, 0)
- Worksheets("2019 TRADING SOC NO.").Range("M" & i).Value = "¦¨¥»ªí"
- Next
- error1:
- Worksheets("2019 TRADING SOC NO.").Range("L" & i).Value = WorksheetFunction.VLookup(Worksheets("2019 TRADING SOC NO.").Range("E" & i).Value, Worksheets("´Á³fÁ`¶× (2020.09.16)").Range("A:G"), 7, 0)
- If Err Then Err.Clear: GoTo error2
- Worksheets("2019 TRADING SOC NO.").Range("M" & i).Value = "´Á³fªí"
-
- error2:
- Worksheets("2019 TRADING SOC NO.").Range("L" & i).Value = ""
- If Err Then MsgBox "Error has found"
- Application.Calculation = xlCalculationAutomatic
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|