Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide Shortcuts in Shutter Bar/Navigation Pane in VBA 1

Status
Not open for further replies.

mbrichmo

Programmer
Feb 3, 2009
5
US
Hi,
Does anyone know how to hide a shortcut from the shutter bar with VBA?
 
Thank you for your reply kjv1611. I don't want to hide the shutter bar though. I want to hide a shortcut in the shutter bar with VBA. The shortcut is to a form. I want to set the shortcut Hidden attribute to true using VBA. The use case is providing a single database front end to multiple users, where forms should display in the shutter bar based on the role of the particular user.
 
Hmm...

Well, as for how to access it, have you tried checking through the DAO objects, perhaps? I've never tried, but if there is a DAO object there, you can reference its properties that way.

If you cannot find it that way, then perhaps you can have 2 different front-end templates. 1 with the item(s) hidden, and 1 with the item(s) not hidden.

Then you simply hand them out according to which they should receive, based on their usertype... either via a list you keep, or a "main" database that associates the username with the usertype..

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Hi,
I found the code: Application.SetHiddenAttribute(acObjectType, name as string, hidden as boolean) I don't know the rules linking to other sites but to give the person that posted credit, his name is Tim Ferguson
 
Oh, if you found it on another site, by all means mention the link. It's always good to give full credit, regardless of where it's from.

Thanks for sharing.

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top