- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-28
|
¦^´_ 4# adam2010 - Sub ex()
- With Sheets("data")
- .Cells.Clear '²MªÅ¤u§@ªí
- Sheets("Original").UsedRange.Copy .[A1] '½Æ»s¸ê®Æ
- .Columns("C").Replace "*p", "" '±N§t¦³"p"ªºÀx¦s®æ²MªÅ
- .Columns("C").SpecialCells(xlCellTypeBlanks).EntireRow.Delete '±N¤W¦C²MªÅªº¦ì¸m¾ã¦C§R°£
- .Columns("A").UnMerge 'AÄæ¨ú®ø¦X¨Ö
- .Rows(1) = .Rows(1).Value '¼ÐÃD¦C«·sµ¹È¡A¥i±Nì¨Ó¼ÆȦs¦¨¤å¦r³¡¤À§ï¦¨¼ÆÈ
- For i = 6 To 23 '¤ÀÄæ°õ¦æ¨ú¥N°Ê§@¥[§Ö³t«×
- .UsedRange.Columns(i).Replace "-", "" '¥h°£-¸¹
- Next
- .[F:P].Insert '´¡¤JÄæ
- Sheets("¤½¦¡").[F1:P2].Copy .[F1] '½Æ»s¤½¦¡
- r = .Cells(.Rows.Count, 5).End(xlUp).Row '¸ê®Æ¦C¼Æ
- .Range("F2:P2").AutoFill Destination:=.Range("F2:P" & r) '¤½¦¡¦V¤U¶ñº¡
- k = .UsedRange.Columns.Count + 1 '±o¨ì¤w¨Ï¥ÎÄæ¦ì¼Æ
- Sheets("¤½¦¡").[DL1:DS2].Copy .Cells(1, k) '½Æ»s¤½¦¡¨ìªí§À
- .Cells(2, k).Resize(, 8).AutoFill .Range(.Cells(2, k), .Cells(r, k + 7)) '¦V¤U¶ñº¡
- End With
- End Sub
½Æ»s¥N½X |
|