- 帖子
- 5923
- 主題
- 13
- 精華
- 1
- 積分
- 5986
- 點名
- 0
- 作業系統
- win10
- 軟體版本
- Office 2010
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台灣基隆
- 註冊時間
- 2010-5-1
- 最後登錄
- 2022-1-23
        
|
2#
發表於 2010-6-14 13:28
| 只看該作者
回復 1# myleoyes - Sub 填滿()
- Dim E&, i&
- E = Cells(ActiveCell.Row, 1).End(xlDown).Row
- Again:
- ZZ = Application.InputBox("請輸入列數", "請輸入填滿間隔列數", 10, Type:=2)
- If ZZ <= 0 Or ZZ = "" Then
- MsgBox "間隔列數不得小於1列!!!", , "列數錯誤請重新輸入 !!"
- GoTo Again
- End If
- Range("A1") = ZZ
- For i = ActiveCell.Row To E Step ZZ
- With Cells(i, 2).Resize(, 20).Interior
- .Pattern = xlSolid
- .PatternColorIndex = xlAutomatic
- ' .ThemeColor = xlThemeColorAccent3
- ' .TintAndShade = 0.799981688894314
- ' .PatternTintAndShade = 0
- '2003 沒有這些屬性
- End With
- Next
- End Sub
複製代碼 |
|