- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¢Ñ¡D¢ÒÄ欰³Q¤ñ¹ï¸ê®Æ¡A
®Ú¾Ú¢ÏÄæ¼Æ¾Ú¡A¨ú¥X»P¢ÑÄæ¬Û¦PÈ©Ò¹ïÀ³¢ÒÄæ¼ÆÈ¡A¨Ã¶ñ¦Ü¢ÐÄæ¡]»PVLOOKUP¬Û¦P¡^¡G¡@ ...
ã´£³¡ªL µoªí©ó 2015-9-4 19:50
¤j¤j¼F®`!
±zªºµ{¦¡½X¤p§Ì©Ó±µ¤F
³o¬O§Ú¬Ý¹L³Ì§Öªº¤è¦¡¤F
§Ú¥Î¶Ç²Îªº¤ñ¹ï¤è¦¡n35¬í(¤j¬ù),Vlookupªº¤è¦¡n5¬í
±zªº¤è¦¡¥u»Ýn0.1x¬í,³t«×¤W§Ö¤F±Nªñ50¿....¤Ó«Â¤F
¤p§Ì·Q½Ð±Ð¤@¤U,±zÁ|ªº¨Ò¤l¬OA Äæ¤ñ¹ï C ,µM«á¨ú¥XD
Y±NÃD¥Ø§ïA ¤ñ¹ïC ,µM«á±o¨ìD,¦A¥ÎD¥h¤ñ¹ïFµM«á¨ú¥XG,³Ì«á¤~±NG ¿é¤J¨ìB Äæ¦ìªº¸Ü
¤U¤è¬O§Ú¥Î±zªº¤è¦¡¼g¥X¨Óªº,¤£¾å±o¦pªG¬O¤j¤j±z¥»¤H¨Ó¼¶¼gªº¸Ü,¤]¬O·|¥Î¬Û¦Pªº¤è¦¡¶Ü?
ÁÙ¬O·|¥Î¤£¦Pªº¼gªk?(§ó«K§Qor§ó²M·¡or§ó§Ö)
³Â·Ð¤j¤j¤F,¤j¤j±zªº³o¬qµ{¦¡½X,¾_¾Ù¨ì¤p§Ì¤F,ªþÀɪº³¡¤À,·|¦Aªá®É¶¡¬Ý,¦³°ÝÃD¦A¦V¤j¤j±z½Ð±Ð®@!- Sub TEST_Vlookup()
- '¢Ñ¡D¢ÒÄ欰³Q¤ñ¹ï¸ê®Æ¡A
- '®Ú¾ÚAÄæ¼Æ¾Ú , ¨ú¥X»PCÄæ¬Û¦PÈ©Ò¹ïÀ³DÄæ¼ÆÈ, ¨Ã¶ñ¦ÜBÄæ(»PVLOOKUP¬Û¦P):
- Dim TM, Arr, Brr, xRow&, xD, i&
- TM = Timer
- [B:B].Clear: [J1] = ""
- xRow = 20000
- Arr = [A1].Resize(xRow)
- Brr = [C1:D1].Resize(xRow)
- Crr = [f1:g1].Resize(xRow)
- Set xD = CreateObject("Scripting.Dictionary")
- 'CªºD
- For i = 1 To UBound(Brr)
- xD(Brr(i, 1)) = Brr(i, 2)
- Next
- '¤ñ¹ïµ²ªG±o¨ìD
- For i = 1 To UBound(Arr)
- Arr(i, 1) = xD(Arr(i, 1))
- Next
- '¦h¥[¤Fpart1-----------------------(FªºG)
- For i = 1 To UBound(Arr)
- xD(Crr(i, 1)) = Crr(i, 2)
- Next
- '¦h¥[¤Fpart2-----------------------(¤ñ¹ïµ²ªG±o¨ìG)
- For i = 1 To UBound(Arr)
- Arr(i, 1) = xD(Arr(i, 1))
- Next
- [B1].Resize(xRow) = Arr
- [J1] = Timer - TM
- End Sub
½Æ»s¥N½X |
|