OaklandJim
Well-known Member
- Joined
- Nov 29, 2018
- Messages
- 833
- Office Version
- 365
- Platform
- Windows
Am regretting intent to roll-my-own ribbon maker. But, the sunk cost problem...
Have somewhat bare bones sub that creates xml based on entries in a worksheet table then adds it to a workbook, modifies the .rels file (if necessary) and then recreates the workbook via zipping with the xml inside. Wrx great...until it doesn't. I thought dev was over, but all of a sudden something went arwry. But I cannot tell what. It worked then it doesn't. The modifications to the workbook seemd perfect, now??? The file seems to have the correct stuff. I have a well vetted custom UI xml that I know works. The .rels file is modified, apparently correctly (it wuz wrking and I did not change anything since). I looked at the workbook and it seems the same as when ribbon was present.
The empty workbook with modifications made programmatically as a zip file is here.
EmptyWorkbook.xlsm.zip
So, what ribbon related detail am I missing?
My next question, assuming that I can get the ribbon to show up...how does one use worksheet event to enable or disable (show or hide) the ribbon as user moves among worksheets.
Oh yeah, I'm happy to share my "ribbon maker" workbook when I get it finalized if anyone cares. I put way too much into it so if can help others I'll be happy. I am not the killer coder though. Pros do not like my hyperexplicit coding (e.g. understandably named vars -- but names too long -- for many values). And, I often use long-winded approaches when other less windy (but unknown to me) are better. Etc.
Do rules allow me to post my email address? Should sharing be by link in thread?
Jim
Have somewhat bare bones sub that creates xml based on entries in a worksheet table then adds it to a workbook, modifies the .rels file (if necessary) and then recreates the workbook via zipping with the xml inside. Wrx great...until it doesn't. I thought dev was over, but all of a sudden something went arwry. But I cannot tell what. It worked then it doesn't. The modifications to the workbook seemd perfect, now??? The file seems to have the correct stuff. I have a well vetted custom UI xml that I know works. The .rels file is modified, apparently correctly (it wuz wrking and I did not change anything since). I looked at the workbook and it seems the same as when ribbon was present.
The empty workbook with modifications made programmatically as a zip file is here.
EmptyWorkbook.xlsm.zip
So, what ribbon related detail am I missing?
My next question, assuming that I can get the ribbon to show up...how does one use worksheet event to enable or disable (show or hide) the ribbon as user moves among worksheets.
Oh yeah, I'm happy to share my "ribbon maker" workbook when I get it finalized if anyone cares. I put way too much into it so if can help others I'll be happy. I am not the killer coder though. Pros do not like my hyperexplicit coding (e.g. understandably named vars -- but names too long -- for many values). And, I often use long-winded approaches when other less windy (but unknown to me) are better. Etc.
Do rules allow me to post my email address? Should sharing be by link in thread?
Jim