如何恢复vba工程资源管理器菜单

2025-10-23 15:52:16

1、Sub Macro1()

With Application.VBE.CommandBars("Menu Bar") .Enabled = True

End With

End Sub

2、输入以上代码点击运行

3、    b = .Enabled 'True   

b = .Visible    'True  

i = .Index  '1   

s = .Name   'Menu Bar  

p = .Protection '8   

r = .RowIndex   '1 to 3  

t = .Type   '1  

h = .Height '26   

w = .Width  '1127   

l = .Left   '0  

tp = .Top   '0   

'.Left = 0  

'.Top = 0   

'.Reset  

'.Enabled = True  

'.Visible = True

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢