2 Ó ON ERROR GOTO ERROR ¥X²{¿ù»~
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 28
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-12-7
|
2 Ó ON ERROR GOTO ERROR ¥X²{¿ù»~
¥»©«³Ì«á¥Ñ mdr0465 ©ó 2020-10-3 17:52 ½s¿è
¦U¦ì¤j¤j§A¦n
§Ú¦b"L"Ä檺Àx¦s®æ, ¥ÎVLOOKUP¦b "2019 SOC NO." ¨½E ªº¸ê®Æ·j´M"¦¨¥»"ªºDÄæ, ¦ý¦pªG¦¨¥»¨S¦³´N·|¦b"´Á³f" ¦pªG¦A¨S¦³§ä¨ì´N·|Åã¥ÜªÅ®æ,
¦p¦¨¥\§ä¨ì°t¹ï´N·|¦b"K"Äæµù©ú¦b¨º¤@Ó¬¡Á¡¶§ä¨ì°t¹ï
¦ý§Ú¥Î2 Ó ON ERROR GOTO ERROR1 ,ON ERROR GOTO ERROR 2, ´N·|¥X²{°ÝÃD
½Ð¦U¦ìÀ°¦£¬Ý¬Ý§Ú¨º¨½¥X¿ù, ÁÂÁÂ
¦pªí¹F±oø¦n,½Ð¨£½Ì |
|
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 28
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-12-7
|
¦^´_ 10# mdr0465
°a¤ªºµ®v¥S
ÁÂÁ§A¸Ô²Óªºª©¥»µ¹§Ú·Qnªºªí¹F¤è¦¡
¸U¤À·PÁ§AªºÀ°¦£
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 28
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-12-7
|
¦^´_ 7# ã´£³¡ªL
ã´£³¡ªLª©¥D
³o´N¬O§Ú·Qnªºªí¹F¤è¦¡
¸U¤À·PÁ§AªºÀ°¦£
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 254
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 310
- ÂI¦W
- 0
- §@·~¨t²Î
- W10
- ³nÅ骩¥»
- Excel 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2019-6-16
- ³Ì«áµn¿ý
- 2024-9-23
|
¥»©«³Ì«á¥Ñ °a¤ªºµ ©ó 2020-10-10 00:37 ½s¿è
¦^´_ 6# mdr0465
§Ú§â¦ì¸m§ï¤F¤@¤U ¦]¬° µ²ªG¸ò·Ç¤jªº¤£¤@¼Ë ©Ò¥H§ï¤F¤@¤U §A¦A¬Ý¬Ý§a
javascript:; |
-
-
1009_01.rar
(505.63 KB)
|
|
|
|
|
|
- ©«¤l
- 254
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 310
- ÂI¦W
- 0
- §@·~¨t²Î
- W10
- ³nÅ骩¥»
- Excel 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2019-6-16
- ³Ì«áµn¿ý
- 2024-9-23
|
¦^´_ 6# mdr0465
¤£ª¾¹D ¬O¤£¬O§Anªº §Ú¦³§â·Ç¤j¼gªº ©ñ¤W¥h ¦pªG¤£¬O ½Ð§i¶D§Ú°ÝÃD¥X¦bþ¸Ì ÁÂÁ §Ú¤]¬O¶¶«K½m²ß
javascript:; |
-
-
1009.rar
(506.45 KB)
|
|
|
|
|
|
- ©«¤l
- 2839
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2895
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-12-18
|
ÀÉ®×µLªk¶}, ¤j¬ù§ì¤@¤U
Sub TEST_A01()
Dim Sht As Worksheet, S1, S2, TC, M(2)
On Error Resume Next
Set Sht = Sheets("2019 TRADING SOC NO.")
If Sht Is Nothing Then MsgBox "¤u§@ªí¡e2019 TRADING SOC NO.¡f¤£¦s¦b! ": Exit Sub
On Error GoTo 0
'------------------------------
For i = 2 To Sht.Range("A" & Rows.Count).End(xlUp).Row
S1 = "": S2 = "": TC = Sht.Range("E" & i).Value
On Error Resume Next
M(1) = Application.VLookup(TC, Sheets("¦¨¥» (2020.09.28)").Range("D:AL"), 35, 0)
M(2) = Application.VLookup(TC, Sheets("´Á³fÁ`¶× (2020.09.16)").Range("A:G"), 7, 0)
On Error GoTo 0
For j = 1 To 2
If Not IsError(M(j)) Then S1 = M(j): S2 = Array("¦¨¥»ªí", "´Á³fªí")(j - 1): Exit For
Next j
Sht.Range("L" & i) = S1
Sht.Range("M" & i) = S2
Next i
End Sub
'=============================== |
|
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 28
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-12-7
|
¦^´_ 5# mdr0465
°a¤ªºµ®v¥S,
½Ð¬d¾\,ÁÂÁÂÀ°¦£
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 28
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-12-7
|
¦^´_ 4# ikboy
Ikboy
ÁÂÁ§Aªº¦^ÂСA |
|
|
|
|
|
|
- ©«¤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
|
º¥ý§Aªºµ{¦¡½X Worksheets("2019 TRADING SOC NO.") ¸ò¥»¤£¦s¦b
On Error Resume Next...¥\¯à¬OÅýµ{¦¡¤£²z·|¿ù»~Ä~Äò¶]¤U¥h, On Error Goto ..¶]¨ì«ü©w¦æÄ~Äò¶]- Sub crosscheck_new_item()
- Application.Calculation = xlCalculationManual
- Dim i As Long, d As Object
- Set d = CreateObject("scripting.dictionary")
- For Each s In Sheets
- d(s) = "" '³Ð«Ø¦r¨å¦¬®ð©Ò¦³¶¦W
- Next
- If Not d.exists("2019 TRADING SOC NO.") Then GoTo error1 '¦pªG¶¦W"2019 TRADING SOC NO."¤£¦s¦b¶]¨ì«ü©w¦æÄ~Äò¶]
- 'On Error GoTo error1
- Worksheets("2019 TRADING SOC NO.").Select
- 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:
- If Not d.exists("2019 TRADING SOC NO.") Then GoTo error2
- 'On Error GoTo error2
- 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)
- Worksheets("2019 TRADING SOC NO.").Range("M" & i).Value = "´Á³fªí"
- error2:
- If Not d.exists("2019 TRADING SOC NO.") Then GoTo 1000
- Worksheets("2019 TRADING SOC NO.").Range("L" & i).Value = ""
- 1000
- Application.Calculation = xlCalculationAutomatic
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 246
- ÂI¦W
- 28
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- ie
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-8
- ³Ì«áµn¿ý
- 2024-12-7
|
¦^´_ 2# ikboy
IKBOY ÁÂÁ§Aªº¦^ÂÐ,
¦ý·í¤¤VLOOKUP ¬O¦³°t¹ï¦¨¥\ªº, ¦ý¬O¤½¦¡¬O¨S¦³¸õ¨ì07,08,09¬qªº¤½¦¡, ½Ð°Ý§ÚÀ³¦p¦óקï©O??
ÁÂÁÂÀ°¦£ |
|
|
|
|
|
|