Results 1 to 3 of 3

Thread: Remove a custom group/button from the ribbon

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    I don't have Project in order to test but I think the issue is a missing space in the string you generate.
    You need to seperate customUIxml from the start of the schema namespace,
    mso:customUIxml ns:mso

    Sub RemoveCustomUI()     
        Dim customUiXml As String      
        customUiXml = "<mso:customUIxml ns:mso=""http://schemas.microsoft.com/office/2009/07/customui"">" _        
        & "<mso:ribbon></mso:ribbon></mso:customUI>"      
        ActiveProject.SetCustomUI (customUiXml) 
    End Sub
    Last edited by Aussiebear; 05-03-2025 at 01:38 PM.
    Cheers
    Andy

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •