以下是引用muhua在2013-3-27 9:50:00的发言:
Select Case User.Name
Case "录入员" ,"张三"
RibbonTabs("Table").Visible = False
RibbonTabs("Project").Visible = False
RibbonTabs("Other").Groups("Execute").Items("SQLExecute").Enabled = False
RibbonTabs("Other").Groups("Execute").Items("Command").Enabled = False
Case Else
RibbonTabs("Table").Visible = True
RibbonTabs("Project").Visible = True
RibbonTabs("Other").Groups("Execute").Items("SQLExecute").Enabled = True
RibbonTabs("Other").Groups("Execute").Items("Command").Enabled = True
End Select
以上是隐藏“数据表”、“管理项目”的代码,同时我还想隐藏“打印输出”、“杂项”,请教老师怎样修改代码,谢谢!