Giter Club home page Giter Club logo

Comments (4)

spences10 avatar spences10 commented on August 10, 2024

I'll take a look at this later @mattpalermo

I have been thinking about taking the turn the binary I to a zip, extracting the files manipulate the XML then pack it back up and change the extension back to what it was previously.

You commented on my testing of adding excel XML that it's not a very human readable for diffing so I'm assuming you're aware of this method already.

from vba-ide-code-export.

mattpalermo avatar mattpalermo commented on August 10, 2024

Yes I have already played around with this idea before but I didn't find it useful. As I mentioned in my comment on one of your commits, the OoXmlUnpack tool does a really good job of this. If you want, have a play with it and see if you can discover something. But if you want to manipulate a OoXml file, it may be helpful to use a library such as the Open XML SDK, ApachePOI or Openpyxl. These library provide a higher level abstraction for creating and modifying OoXml files. All these methods may be valid ways of injecting CustomUI.xml, however I found that there is a simple function in VBA that could achieve the objective: SetCustomUI.

from vba-ide-code-export.

mattpalermo avatar mattpalermo commented on August 10, 2024

It appears that the function that I found is not available in Excel and this may not be possible inside the VBA environment. The alternative is to either use existing methods or make a command line program that uses one of the libraries that I mentioned above to inject the CustomUI.xml into the Excel file.

http://stackoverflow.com/questions/16264003/is-there-an-alternative-to-projects-setcustomui-for-excel
http://stackoverflow.com/questions/8850836/how-to-add-a-custom-ribbon-tab-using-vba

from vba-ide-code-export.

spences10 avatar spences10 commented on August 10, 2024

I'll take a look one day and use something like the in the comments I have made here:

If you want to create an Excel custom ribbon from scratch and you're not using the CustomUI editor you will need to add the following line to the .rels file in the _rels folder

<Relationship Id="someID" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>

from vba-ide-code-export.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.