SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok - So I have a shared documents library - and like many posts before me I would like to make the default tab on the ribbon a custom tab that I have made. Can someone tell me how to edit the URL using code without having to manually type in the url aspx?InitialRibbonID=Ribbon.CustomTabExample...... PLEASE

share|improve this question

Try manipulating the InitialTabId of the SPRibbon object. Set the attribute value to the id to your tab and then it will be selected when the document library loads.

Here is a sample example:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.