- Dim i&, R As Range, Y%
- i = 2: Y = 1
- With Sheet2
- Do While .Cells(i, "b") <> ""
- Set R = .Cells(i, "b")
- With Sheet1.Cells(i - 1, Y)
- .Value = R & Chr(10) & R(1, 2) & R(1, 3) & R(1, 4) & Chr(10) & Chr(10) & R(1, 5) & Space(20) & R(1, 6) & "¦¬" & Chr(10)
- .ColumnWidth = 33
- .Borders.LineStyle = xlContinuous
- .HorizontalAlignment = xlLeft
- .VerticalAlignment = xlCenter
- .IndentLevel = 1
- End With
- If Y = 1 Then
- Y = 1: i = i + 1
- Else
- Y = Y + 1
- End If
- Loop
- End With
- ' Sheet1.PrintOut
- End Sub
½Æ»s¥N½X ³oµ{¦¡½X¬O§Û¥Î¨ä¥L¤j¤j©Ò¼g¡A§Ú·Q§ïÅܸê®Æ¼g¤J¤è¦¡¡A1.ì©l¤è¦¡¬Oa1'b1'c1'''''¦V¤U¼g¤J¡A¥i§_§ï¦¨a1,b1,c1,d1,e1,f1¡A¦A¸õa2,b2,c2,d2,e2,f2¡C
2. R(1, 2)¦r¤j¤p10¡AR(1, 6)¦r¤j¤p14¡C¦Û¤v·Q¤F³\¤[´N¬OµLªk¹F¦¨¡A½Ð¥ý¶iÀ°¦£¡C |