- 帖子
- 4901
- 主題
- 44
- 精華
- 24
- 積分
- 4916
- 點名
- 142
- 作業系統
- Windows 7
- 軟體版本
- Office 20xx
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台北
- 註冊時間
- 2010-4-30
- 最後登錄
- 2026-7-16
                
|
回復 1# 周大偉
關閉事件程序觸發- Sub 清除斜線()
- '
- ' 清除斜線 Macro
- ' shchao 在 2010/11/15 錄製的巨集
- '
- '
- Application.EnableEvents = False
- Range("B15:K34").Select
- Selection.ClearContents
- Selection.Borders(xlDiagonalDown).LineStyle = xlNone
- Selection.Borders(xlDiagonalUp).LineStyle = xlNone
- With Selection.Borders(xlEdgeLeft)
- .LineStyle = xlDouble
- .Weight = xlThick
- .ColorIndex = xlAutomatic
- End With
- With Selection.Borders(xlEdgeTop)
- .LineStyle = xlDouble
- .Weight = xlThick
- .ColorIndex = xlAutomatic
- End With
- With Selection.Borders(xlEdgeBottom)
- .LineStyle = xlContinuous
- .Weight = xlThin
- .ColorIndex = 15
- End With
- With Selection.Borders(xlEdgeRight)
- .LineStyle = xlDouble
- .Weight = xlThick
- .ColorIndex = xlAutomatic
- End With
- With Selection.Borders(xlInsideVertical)
- .LineStyle = xlContinuous
- .Weight = xlMedium
- .ColorIndex = 15
- End With
- With Selection.Borders(xlInsideHorizontal)
- .LineStyle = xlContinuous
- .Weight = xlThin
- .ColorIndex = 15
- End With
- Range("E8:F8").Select
- Application.EnableEvents = True
- End Sub
複製代碼 |
|