- ©«¤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-10-30
|
¥»©«³Ì«á¥Ñ samwang ©ó 2021-7-29 07:28 ½s¿è
¦^´_ 6# zz0660
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test_T1()
Dim Arr, T, xR, T1, i&, j&, xC%
With Sheets("AA")
T = .Range("c1"): xR = .Range("d1")
Ar = .Range("b3:i19")
End With
With Sheets("QQ")
If xR = "T1" Then
Arr = .Range("a1:h" & .[b65536].End(3).Row): xC = 0 'T1
ElseIf xR = "T2" Then
Arr = .Range("j1:q" & .[k65536].End(3).Row): xC = 9 'T2
ElseIf xR = "T3" Then
Arr = .Range("s1:z" & .[t65536].End(3).Row): xC = 18 'T3
End If
For i = 1 To UBound(Arr) Step 19
T1 = Arr(i, 2): If T1 = "" Then GoTo 99
If T1 = T Then
.Cells(i, 1).Offset(1, xC).Resize(17, 8).Value = Ar
Exit Sub
End If
99: Next
End With
End Sub |
|