• Excel menu with XML (Excel 2003/ XML (pro UK))

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Excel menu with XML (Excel 2003/ XML (pro UK))

    Author
    Topic
    #439606

    Hi

    Toying with an idea of an easy to use ‘XL menu builder tool’ that requires no programming skills.
    What I want is to make a generic XLA, that reads any given XML file. And based on that constructs the menu.

    All user needs to do then, is to fill in tags in an XML file. Using hierarchies.

    Thought of an XML looking something like this:

    TRUE
    TRUE
    MyBar</p> <p>FALSE<br /> 01<br /> 01<br /> MyTitle<br /> MsoDropDown</p> <p>FALSE<br /> 01<br /> 02<br /> MyLevel1<br /> MsoButton<br /> RunAnotherSub</p> <p>FALSE<br /> 02<br /> 01<br /> 01<br /> MyLevel2Menu<br /> MsoButton<br /> RunSub</p> <p>Naturally the amount of items in the menu will be a lot longer, but I hope the above is enough to give you an idea of what I have in mind?<br /> It will most likely only be able to achieve the most basic things in comparison to what menus do today, but that’s acceptable for starters.</p> <p>What I need is indications on how to code the XLA in order to make it read from the XML.</p> <p>I’m new to using XML in Excel, so I’m kind of hoping that some of you magicians will be able to point me in the right direction – hopefully off to a good start…</p> <p>TIA

    Viewing 1 reply thread
    Author
    Replies
    • #1050824

      This might help: post 343,644

      Because it’s for Outlook, the CommandBars collection belongs to a different object, but otherwise, it should be analogous.

    • #1051089

      What is wrong with using a table of cells in Excel itself as opposed to XML (which is harder to edit IMO)?

      There are ample examples to find on table driven commandbar creation on the web.

      • #1051091

        Hi Jan,

        Thanks for the tip.

        Do you have a good keyword to get off to a good start…(maybe sth. like ‘table driven commandbar’ ?)

        • #1051109

          Search google for the book called “Professional Excel Development” and purchase a copy. Worth it’s weight in platinum and contains exactly this.

          • #1051151

            Hi Jan,

            Thanks for the tip. Book looks exciting – have ordered it / ;o)

            btw: Reason for not stating the “using-Excel-itself” angle was that I somehow thought it to be to simple (don’t know why really)
            Looking in the always clear rear view mirror it seems so simple and obvious to try to achieve a very simple menu build that way.

            So – thanks for straigthening out my crooked thoughts

            • #1051256

              Simpler is pretty much always better (provided you get the same functionality).

    Viewing 1 reply thread
    Reply To: Excel menu with XML (Excel 2003/ XML (pro UK))

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: