- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-21
|
¦^´_ 25# BV7BW
Sub °e³f³æ_¸ü¤J()
Dim CN&
Call °e³f³æ_²M°£³æ¨
With Sheets("°e³f³æ")
If .[A6] = 0 Then MsgBox "**[³æ¸¹]¿ù»~©Î¥¼¿é¤J! ": Exit Sub
.[A7] = "=IF(ROW(A1)>B$6,"""",ROW(A1))"
.[B7] = "=IF(N(A7)=0,"""",INDEX(q³f©ú²Óªí!C:C,A$6+A7-1))"
.[C7] = "=IF(N(A7)=0,"""",INDEX(q³f©ú²Óªí!D:D,A$6+A7-1))"
.[E7] = "=IF(N(A7)=0,"""",INDEX(q³f©ú²Óªí!E:E,A$6+A7-1))"
.[F7] = "=IF(N(A7)=0,"""",INDEX(q³f©ú²Óªí!F:F,A$6+A7-1))"
.[G7] = "=IF(N(A7)=0,"""",N(E7)*N(F7))"
'-----------------------------------------
CN = Application.Ceiling(.[B6].Value, 15) '¥H15¬°¿¼Æ, pºâ©Ò»Ý¦æ¼Æ
If CN > 1 Then .[A7:K7].Copy .[A8:K8].Resize(CN - 1) '¥Î²Ä¤@¦æ®æ¦¡½Æ»s©Ò»Ý¦æ¼Æ
.[H7] = "=IF(N(A7)=0,"""",INDEX(q³f©ú²Óªí!M:M,A$6+A7-1)&"""")" '±ÄÁʳ渹
'-----------------------------------------
.Range("A1:K" & CN + 6).Name = "'" & .Name & "'!Print_Area" '¦C¦L½d³ò
.Range("1:6").Name = "'" & .Name & "'!Print_Titles" '¦C¦LªíÀY
End With
End Sub
¨ºÓ N §ï¦¨ CN ..À³¬O¤£¤p¤ß§R±¼¤F...¤p¨Æ...»{¯uÂI¥h¬Ý..¦Û¤v¤]¥i¥h×¥¿ªº
'=========================================== |
|