- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¦^´_ 1# scjiao
¸Õ¸Õ¬Ý:- Sub test()
- Dim sh1, sh2 As Worksheet
- Dim i, j, k As Integer
- Set sh1 = Sheets("MPS_TEST")
- Set sh2 = Sheets("±Æµ{")
- Sheets("±Æµ{").Activate
- With sh2
- For i = 1 To 35
- sh1.Cells(i * 8 - 3, 1).Resize(8, 1) = .Cells(i * 2 + 3, 1)
- For j = 10 To 50
- .Cells(i * 2 + 3, j).Select
- If .Cells(i * 2 + 3, j) <> "" Then
- .Cells(3, .Cells(i * 2 + 3, j).Column).Select
- sh1.Cells(i * 8 - 3, 2).Resize(8, 1) = .Cells(3, .Cells(i * 2 + 3, j).Column)
- sh1.Cells(i * 8 - 3, 3).Resize(8, 1) = .Cells(3, .Cells(i * 2 + 3, j).Column)
- k = j
- Do
- k = k + 1
- If .Cells(i * 2 + 3, k) <> "" Then
- sh1.Cells(i * 8 - 3, 3).Resize(8, 1) = .Cells(3, .Cells(i * 2 + 3, k).Column)
- End If
- Loop Until k > 50
- If k > 50 Then GoTo nextI
- End If
- Next
- nextI:
- Next
- End With
- End Sub
½Æ»s¥N½X |
|