CustomUI ribbon customization disappears on save? - excel

I've created an Excel workbook for a client of mine which uses a custom ribbon tab to access the VBA functionality. It thus contains a customUI.xml file with the extra ribbon code in it (by using the Custom UI Editor tool). By now, all was working well for over a year.
However, a few days ago the ribbon customizations keep disappearing after he makes a simple modification to the file and saves it again. Nothing fancy; just change some cell values and ctrl-s save. When opening the saved version the ribbon doesn't show up, and on closer inspection it turns out the ribbon customization is completely gone from the file at that point (the entire root customUI folder is gone and the reference to it from the _rels.rels file is gone too). He's just a regular Excel user, so he doesn't even know about Office custom UI ribbon xmls etc, so it's not that he has been messing with tools he shouldn't have messed with. When I open a working copy of the file on my machine and save it, the ribbon remains in place.
The VBA is still intact though, and the listobject tables that are placed on some sheets are still there too, so it can't be because it got intermediately saved in 2003 format or such...
The file does live in a Sharepoint and OneDrive environment, but IIRC he also had this problem when retrieving a working backup of the file, placing it on his desktop and making a modification from there. Then again a few months ago his IT administrator has moved his company over to Office 356 and migrated his files to the cloud, so it might well be his desktop is on OneDrive too.
What could cause a perfectly fine ribbon to disappear like that? A rogue Office update? Or some Sharepoint 'security' feature to remove ribbons on save? (note that I'm not well known with Sharepoint so this is just wild speculation.) He's using Office 365, so I presume he's on Excel 2019 (as am I).
All leads are welcome, because I'm at a total loss here...

Related

Excel Macros not visible after Office update

I have a workbook in which I consolidate data from various CSV files. There are a number of macros in this file including ones to add new sheets to the file, which is on a shortcut key Ctrl+Shift+N. This has been working perfectly for many years. This morning the shortcut key does absolutely nothing. If I go to the Excel developer tab and click on the Macros button, the list of macros is empty. However, if I open VBA I can run the macro from there and it still works perfectly.
I run Office Professional Plus 2019 and it ran an update yesterday. Does anyone know of a new setting introduced that may hide the macros in Excel itself. Note that macros are enabled on this workbook.
Just for closure should someone else stumble across this. The problem was related to the specific file. It somehow got "partially" corrupted. Still worked and could fire macros from VBA IDE as well as linked buttons, just not with shortcut keys as macros not "visible" in Excel view. File degraded further to a point where it could no longer save.

How do I share a VBA excel function within a team

I've written my first VBA Excel function, ConvertFromUSD(amount,currencyname,year), which uses an excel spreadsheet to look up an exchange rate from US Dollars to a specified currency for a specified year, and returns the converted sum.
It seems to work fine, and I've made it into an Add-in that I can use whenever I start a new spreadsheet or edit an existing one.
Now I want to make this add-in available to a couple of dozen other people in my team, but I can't see how to do it; should I send the .xla to each of them and get them to install it (if so, how?), or can I put it somewhere where their excel applications will automagically find it?
Thanks for your help.
If they just double click the .xla file it should work for them. It will probably disappear as soon as they close excel though.
The quick way to get it to stick around:
enable their "Developer"
tab
Navigate to the Developer tab
Click "Add-ins"
"Browse" to the .xla file
Ensure that it's "Checked" in the list
There is a folder where they will be displayed in the "Add-in" dialog automatically without browsing, but it depends on the version of excel. 2010, for instance, is C:\Program Files\Microsoft Office\Office14\Library.

Excel 2013 - "At startup, open all files in": only works first time

Afternoon all,
I've just upgraded to Office 2013 and I'm trying to get to grips with it.
Since Excel 2003, through 2007 and 2010 I have created and used standard templates for new workbooks and sheets which I store in a specific location. I use the "At startup, open all files in" option in the Advanced Excel options to reference this location so each time a new workbook or sheet is opened, it uses my templates.
In Excel 2013 it works in the first workbook but any workbook after that I open just opens as standard. If I create a new instance of Excel by holding down Alt when I click on it, it also works correctly. It seems as if the change in Excel 2013 to open up workbooks in the same instance which behave as separate instances has the downside of the startup files not being accessed.
Does anyone know how to correct or get around this?
Edit: Same problem if I use the default XLStartup folder
SliderSteve

Unwanted excel add-in loads but no trace of it anywhere

When loading Excel2013, an old add-in continues appearing in the tabs, although not requested
The add-in does not appear in VBA projects nor in any file in Office or Users folders
The add-in does not show in Excel options add-ins list
I wonder from where Excel loads it and looks for a way to get rid of it
Thanks
Avi
If this is a "phantom toolbar/menu" appearing in the addins tab you can remove it by right-clicking it and choosing delete.
Also make sure you have checked the COM addins list as well as the Excel addins list.

VBA created with Excel 2003 loaded OK in Excel 2007, but there's nothing in Project tree of VB editor

I have created a VBA in excel 2003 and save it in xla format. This AddIn add a new menu and some submenu in toolbar of Excel. All work well until I upgrade to Office 2007, then I open the xla file. No error message shown, but when I view the macro List, no items there. I open the Visual Basic editor. My old Project (named ML) is still there, but nothing in the Project tree, just default files as when add a new blank project.
I open the xla file with notepad, and my variable, function name are still there. Anyone has experience in this weird behavior, please give me a clue.
Thanks in advance.
Toolbar add-ins generally appear in the add-ins tab of the ribbon in Excel 2007. Make sure you have the add-ins tab displayed (if not you can turn it on under excel options).
If that still isn't working you'll need to go online and read up on altering the code to conform to the ribbon - there are a lot of resources out there should you need to do this.

Resources