- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-1-24 19:16 ½s¿è
¦^´_ 1# cmo140497
1.
>>¦p¹JÄæ¦ì¼Æ¤£¨¬,¦Û°Ê·s¼W¨Ó·½¤§columns¼Æ,
±Ôz¬Ý¤£À´
2.
>>¨C±Æ¶È¯à¦³¤TÓ½d³ò¸ê®Æ,²Ä¥|Ó«h¸õ²Ä¤G±Æ
Àɮ׸ò¹Ï¤WÅã¥Üªº¬O
¶È¦³¤GÓ½d³ò¸ê®Æ,²Ä¤TÓ«h¸õ²Ä¤G±Æ
3.
¤£¹L§Ú¤j¸Ó¥i¥H²q¥X§An¬Æ»ò...
¸Õ¬Ý¬Ý..- Sub Test()
- Dim vCols As Long, cIndex As Long, rIndex As Long
- Dim first As Long, last As Long
- Dim sCopy As String
- Dim r, c
- first = 2 'from T02 , ¥i¦Û¦æ½Õ¾ã
- last = 5 'to T05 , ¥i¦Û¦æ½Õ¾ã
- sCopy = "B2:P12" '¥i¦Û¦æ½Õ¾ã
- r = Range(sCopy).Rows.Count + 1 '¨C°Ï¶ô¦C¼Æ,+1¦C¼ÐÃD(Wafer TXX)
- c = Range(sCopy).Columns.Count + 1 '¨C°Ï¶ôÄæ¼Æ,+1ÄæªÅ¥Õ
-
- '¥i¨£ªºÄæ¼ÆÁ`¼Æ
- vCols = Sheets("sheet1").Cells.SpecialCells(xlCellTypeVisible).Columns.Count
- For i = first To last
- rIndex = Int((i - first) / Int(vCols / c))
- cindex = (i - first) Mod Int(vCols / c)
-
- With Sheets("sheet1").[B5].Offset(r * rIndex, c * cindex)
- .Offset(-1, 1).Value = "WAFER"
- .Offset(-1, 2).Value = "T" & Format(i, "00")
- Sheets("T" & Format(i, "00")).Range(sCopy).Copy .Cells(1, 1) '½d³ò½Æ»s[B2:P12],§t®æ¦¡
- End With
- Next i
- End Sub
½Æ»s¥N½X |
|