填报修改删除查阅时隐藏明细按钮
通过VBA将明细表的系统生成复制的按钮隐藏了
- Public Sub Workbook_Open(OldRoot As Grid, NewRoot As Grid, Excel As SpreadsheetGear.Windows.Controls.WorkbookView) Implements Interfaces.IExcelWorkBook.Workbook_Open
- EV = Excel
- Excel.GetLock()
- AW = Excel.ActiveWorkbook
- Range = AW.ActiveWorksheet.Range
- Excel.ReleaseLock()
- ActiveWorkbook.WorkbookSet.GetLock()
- Dim i As Integer
- For i = 0 To ActiveWorkbook.ActiveWorksheet.Shapes.Count - 1
- If ActiveWorkbook.ActiveWorksheet.Shapes(i).Name = "Button 1" Then
- ActiveWorkbook.ActiveWorksheet.Shapes(i).Visible = False
- End If
- Next i
- ActiveWorkbook.WorkbookSet.ReleaseLock()
- '位置:2保存3新增4提交5退回6进度7打印8预览9导出10捕获11上传图片12上传附件13插入行14插多行15删除行16查找17最后
- End Sub '打开时执行事件
复制代码
|
|
hessen