为了实现不同用户级别,显示不同的菜单.我在 Loadusersetting中设置了如下代码:
If User.Name = "录入员" Then
RibbonTabs("Table").Visible = False
RibbonTabs("Project").Visible = False
RibbonTabs("Other").Visible = False
RibbonTabs("imexport").Groups("OuterData").visible=false
end if
If User.Name="管理员" then
RibbonTabs("Other").Visible = False
RibbonTabs("imexport").Groups("OuterData").visible=false
RibbonTabs("Project").Groups("Project").items("Property").Visible = False
end if
Else if
RibbonTabs("Table").Visible = True
RibbonTabs("Project").Visible = True
RibbonTabs("Other").Visible =True
RibbonTabs("imexport").Groups("OuterData").visible=true
End If
保存时提示错误.请问错在哪里?