Sub ex()
k = Sheets(2).Cells(9, Columns.Count).End(xlToLeft).Column
For i = 11 To 96
Sheets(2).Cells(i - 9, k + 1) = Sheets(1).Cells(i, 3)
Next
Sheets(2).Cells(1, k + 1) = Format(Year(Date), "0000") & Format(Month(Date), "00") & Format(Day(Date), "00")
End Sub
½Ð°Ý¥i¤£¥i¥H¦b¥H¤W«ü¥O¤J±¥[¦Û°Ê¦C¦L,«ö½Æ»sŪ¨úªº¤º®e°µ½d³ò.
²a¤j´£¨Ñ- Sub TEST()
- ActiveSheet.ResetAllPageBreaks
- For i = 2 To Cells(Rows.Count, 1).End(xlUp).Row - 1
- ¡@¡@If Right(Cells(i, 1), 2) = "¦Xp" Then
- ¡@¡@¡@¡@ActiveSheet.HPageBreaks.Add Before:=Cells(i + 1, 1)
- ¡@¡@End If
- Next i
- End Sub
- ¥[¤J¡e¤À¶¡f½u¡A¦A¤â°Ê¦C¦L¡]¥i¤â°Ê«ü©w¦C¦L¶¦¸¡^
½Æ»s¥N½X |