- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 15# PD961A - Sub Ex()
- '¦bSheet2ªºIUÄæ¥[¤W¤é´Á¬ö¿ý»²§U
- Dim Rng As Range, N%, F As Range, No%
- Dim Sh As Worksheet
- Set Sh = Sheet2
- Set Rng = Sh.Range("A1").CurrentRegion
- Sheet1.Range("A1").CurrentRegion.Offset(1) = ""
- N = 2
- For i = 2 To Rng.Rows.Count
- For II = 1 To Rng.Rows(i).Cells(Rng.Columns.Count)
- ''''''''''''''''''''''''''''''''''''''''''''''''''''
- Set F = Sh.Range("IU:IU").Find(Rng.Rows(i).Cells(5).Value)
- If Not F Is Nothing Then No = F(1, 2) + 1 Else No = 1
- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- With Sheet1.Range("A1").CurrentRegion.Rows(N)
- .Value = Rng.Rows(i).Resize(, Rng.Columns.Count - 1).Value
- .Cells(4) = Rng.Rows(i).Cells(4) & Format(No, "0000000")
- N = N + 1
- No = No + 1
- End With
- ''''''''''''''''''''''''''''''''''
- If Not F Is Nothing Then
- F(1, 2) = No - 1
- Else
- With Sh.Range("IU65536").End(xlUp)
- .Offset(1) = Rng.Rows(i).Cells(5).Text
- .Offset(1, 1) = No - 1
- End With
- End If
- '''''''''''''''''''''''''''''''''''''''''
- Next
- Next
- End Sub
½Æ»s¥N½X |
|