清除区域中单元格的内容而保留公式
- Public Sub ButtunClick(sender As Object,e As SpreadsheetGear.Windows.Controls.ShapeActionEventArgs)
- ActiveWorkbook.WorkbookSet.GetLock()
- If e.Shape.Name = "Button 1" Then
- Dim Cell As IRange
- For Each Cell In Range("B13:AV78")
- If Cell.HasFormula = False Then
- Cell.ClearContents()
- End If
- Next Cell
- End If
- ActiveWorkbook.WorkbookSet.ReleaseLock()
- End Sub'按钮/标签点击事件
复制代码
|
|
hessen