请问 VB6 中如何引用CommandBar对象和CommandBarControl啊
小弟 想使用他来禁止 在excel单元格中进行复制

解决方案 »

  1.   

    Set lbl = CommandBars.FindControl(Type:= msoControlGauge)
    If lbl Is Nothing Then
        MsgBox "A control of type msoControlGauge was not found."
    Else
        MsgBox "Control " & lbl.Index & " on command bar " _
            & lbl.Parent.Name & " is type msoControlGauge"
    End If
      

  2.   

    引用Microsoft Office Object Library。
      

  3.   

    Re:想使用他来禁止 在excel单元格中进行复制
    这个通过你说的方法不行吧