- 帖子
- 4901
- 主題
- 44
- 精華
- 24
- 積分
- 4916
- 點名
- 142
- 作業系統
- Windows 7
- 軟體版本
- Office 20xx
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台北
- 註冊時間
- 2010-4-30
- 最後登錄
- 2026-7-16
                
|
回復 10# john2006168 - Sub nn()
- Dim Rng As Range
- [A10].Insert xlToRight
- [A10] = "plt no"
- Set Rng = Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeConstants)
- For i = 1 To Rng.Areas.Count
- mystr = Rng.Areas(i).Address
- Rng.Areas(i).Insert xlToRight
- Range(mystr).Value =format( i,"'00")
- Next
- Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
- End Sub
複製代碼 |
|