Consulting

Results 1 to 7 of 7

Thread: Can I get rid of the labels of Cut/Copy/Paste on my self-created ribbon?

  1. #1
    VBAX Contributor
    Joined
    Apr 2015
    Location
    Germany
    Posts
    167
    Location

    Can I get rid of the labels of Cut/Copy/Paste on my self-created ribbon?

    Hi,

    I hope, this is just a little one - but I have no idea.

    I am creating my personal ribbon. It is going to be a mix of original MS-Office-tools and VBA-macros I created for PowerPoint on my own. Goal is to have nearly all necessary tools for my work on one ribbon. As there are quite a lot of helpful tools, I want to save space. But after inserting Cut/Copy/Paste, I had to find out, that they are always displayed with their labels. Is there a way to get rid of these Labels? The icons are enough for me.

    This is my code:
    customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
     <ribbon startFromScratch="false">
      <tabs>
       <tab id="MixedTab" label="Mixed">
        <group id="MyOwnClipboard" label="Clipboard">
          <button idMso="Cut" enabled="true"/> 
          <button idMso="Copy" enabled="true"/>
          <splitButton idMso="PasteMenu" enabled="true"/>
        </group>
       </tab>
      </tabs>
     </ribbon>
    </customUI>
    And this is the result. (It's German. But the labels say: Cut, Copy, Paste. :-))

    cutcopypaste.png

    Any ideas? Thanks so much!

  2. #2
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    try
    <button idMso="Copy" enabled="true" showLabel="false"/>
    Cheers
    Andy

  3. #3
    VBAX Contributor
    Joined
    Apr 2015
    Location
    Germany
    Posts
    167
    Location
    Thank you, Andy - this is it!

  4. #4
    VBAX Contributor
    Joined
    Apr 2015
    Location
    Germany
    Posts
    167
    Location
    To learn about showLabel="False" was great, but in the meantime I found out, there are some tools not reacting on it, e.g., ShapeOutlineColorPicker or TextAlignGallery. Is there another way to get rid of the labels?

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,443
    Location
    Doesn't look like it. I thought about setting label to "", but label is not a valid attribute for those controls.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    Best you can do is set the caption to space,
    					<gallery 
    						idMso="ShapeOutlineColorPicker"
    						label=" "/>
    Cheers
    Andy

  7. #7
    VBAX Contributor
    Joined
    Apr 2015
    Location
    Germany
    Posts
    167
    Location
    Nice workaround, thank you!

Posting Permissions

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