- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-12-18
|
¥»©«³Ì«á¥Ñ samwang ©ó 2021-9-10 14:46 ½s¿è
¦^´_ 30# wayne0303
R = Range("f65536").End(3).Row >>³o¬Oªí®æ°_©l¦ì¸m¡H©Ò¥H±z³oÓ¥N½X¨S¦³³]©wªí®æ·j´M½d³ò¤F¡H
Arr = Range("a1:a" & [a65536].End(3).Row)>>³o¬O¨Ó·½°t¹ïÀɦì¸m¡H
>> #29 µ{¦¡½X¡A¥u¦³°w¹ï§A´£¨ì"§ÚªºÄæ¦C³£·|(¤£¹ïµ¥ªº)¼W¥[" °µ×§ï¦p¤U¡AÁÙ¦³¤ñ¹ï®É¤@¤p³¡¤À·s¼W¡A¤w¦³¼gµù¸Ñ¤F¡A½Ð¦Û¦æ¬ã¨s¤@¤U¡AÁÂÁÂ
Application.ScreenUpdating = False: Application.DisplayAlerts = False
'FPath = ThisWorkbook.Path '¥»Àɮתº¸ô®|
'Set WB = Workbooks.Open(FPath & "\²Îpªí.xlsx") '¶}±Ò¥»Àɮ׸ô®|¤Uªº²Îpªí
'''°w¹ï"§ÚªºÄæ¦C³£·|(¤£¹ïµ¥ªº)¼W¥["ªº³B²z¡A
With Sheets(1)
If .FilterMode Then .ShowAllData
R = Range("f65536").End(3).Row 'FÄæ³Ì«á¤@¦C
C = Rows("3:" & R).Find("*", searchorder:=xlByColumns, SearchDirection:=xlPrevious).Column '§ä¨ì³Ì«á¤@Äæ
Arr = Range([f1], Cells(R, C)) '¸ê®Æ¸Ë¤J°}¦C
For i = 1 To UBound(Arr)
If InStr(Arr(i, 1), "¥kÁ³") Then
For j = 1 To UBound(Arr, 2)
T = Arr(i + 2, j): If T = "" Then GoTo 95
xD(T & "_1") = Arr(i + 1, j) '¥kÁ³±Û¸ê®Æ¸Ë¨ì¦r¨å
95: Next
ElseIf InStr(Arr(i, 1), "¥ªÁ³") Then
For j = 1 To UBound(Arr, 2)
T = Arr(i + 2, j): If T = "" Then GoTo 96
xD(T & "_2") = Arr(i + 1, j) '¥ªÁ³±Û¸ê®Æ¸Ë¨ì¦r¨å
96: Next
ElseIf InStr(Arr(i, 1), "¥") Then
For j = 1 To UBound(Arr, 2)
T = Arr(i + 2, j): If T = "" Then GoTo 97
xD(T & "_3") = Arr(i + 1, j) '¥Ås¸ê®Æ¸Ë¨ì¦r¨å
97: Next
End If
Next
End With
'WB.Close 'Ãö³¬²Îpªí
'¤U±ªº¤W¦¸ªº¤@¼Ë¡A¥u¦³·s¼W¦p¤U
Arr = Range("a1:a" & [a65536].End(3).Row) 'n³Q¤ñ¹ïªº¸ê®Æ
For i = 1 To UBound(Arr)
If Arr(i, 1) = "" Then GoTo 98 '·s¼W:·íAÄ檺Àx¦s®æµL¸ê®Æ¤£°µ°Ê§@
If Left(Arr(i, 1), 1) = "L" Or Left(Arr(i, 1), 1) = "R" Then 'AÄæÀx¦s®æªº²Ä1Ó¦r"L" "R"¤~°Ê§@
w1 = Left(Arr(i, 1), 1): w2 = Mid(Arr(i, 1), 2, 1)
If Asc(w1) > 64 And Asc(w1) < 123 And Asc(w2) > 64 And Asc(w2) < 123 Then
....
... |
|