Comments (4)
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.
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.
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.
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)
- Tidy file structure HOT 12
- Syntax error in JSON configuration will raise an error
- Cannot run import twice in a row HOT 4
- Code "formatter" to fix whitespace issues
- Ribbon UI HOT 1
- CustomUI.xml (Ribbon UI) injection HOT 5
- Command line interface HOT 3
- Store Excel workbooks as Unpacked stack of XML files HOT 8
- README Improvements HOT 4
- Keep a changelog HOT 7
- Test and example workbooks HOT 4
- Build a wiki HOT 6
- Set VBAProject Name on Make Config File HOT 2
- Recommend using .gitattributes, .editorconfig and .gitignore files HOT 6
- XML to Excel
- `Add References` clearly detailed in the code HOT 1
- Deletion of macros' components after export of code HOT 6
- Installer is missing HOT 5
- File type check before Excel to XML
- Error 57101 - Can't remove default reference
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vba-ide-code-export.