+ Reply to Thread
Results 1 to 2 of 2

Find and Replace a string in a XML code, using a CommandButton

  1. #1
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010 and 2019, but only 2019 to test if my sheets works!
    Posts
    149

    Find and Replace a string in a XML code, using a CommandButton

    I need a VBA code to a CommandButton.

    I made my own Excel Ribbon, using RibbonX Designer and have a CustomUI14 XML I need to change, using the CommandButton.
    I need all the idMso="Tabxxx" visible="false" to change to idMso="Tabxxx" visible="true"

    Later I need to change all back to visible="false", without it have any affect at all the Tabs, which already was visible="true", as idMso=TabPrintPreview" visible="true" is in my Ribbon.

    I believe the Find&Replace Code should contain each specific idMso I need to change.

    Anybody who can help me with a code like this ?

    Thank you in advance.

    Ib



    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010 and 2019, but only 2019 to test if my sheets works!
    Posts
    149

    Thumbs up Re: Find and Replace a string in a XML code, using a CommandButton

    I knew this question was a hard nut to crack and therefor I contacted Andy Pope, who made the Editor and he helped me.
    The solution is already in his Editor and with some help from Andy I understood how to make the settings.

    Attached a little example, how an own Ribbon is made and how to show and hide Excel's Ribbon.

    Thank you to all who looked at this threat.

    Ib
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1