返回列表 上一主題 發帖

工作表不被刪除

回復 1# sping
thisworkbook模組
  1. Private Sub Workbook_WindowActivate(ByVal Wn As Window)
  2.    Dim sk As Office.CommandBarControl
  3.     For Each sk In Application.CommandBars.FindControls(ID:=847)
  4.         sk.Enabled = False
  5.     Next sk

  6. End Sub

  7. Private Sub Workbook_WindowDeactivate(ByVal Wn As Window)
  8.    Dim sk As Office.CommandBarControl
  9.     For Each sk In Application.CommandBars.FindControls(ID:=847)
  10.         sk.Enabled = True
  11.     Next sk

  12. End Sub
複製代碼
學海無涯_不恥下問

TOP

        靜思自在 : 站在半路,比走到目標更辛苦。
返回列表 上一主題