MS Custom UI Editor - "File contains corrupted data"

LibT

New Member
Joined
Jul 7, 2009
Messages
19
VBA is messing with my head so I decided to customize the ribbon.

Problem is I cant open my xlsm file in the Microsoft Custom UI Editor, it says "File contains corrupted data"

How can I fix this?

Im thinking of copying all the sheets, Modules & User Forms BUT is there a chance I will be copying the corrupted data???

How can I be sure, as I wouldn't think the custom UI editor would be made to identify just any data corruption. I would think it would be limitied to what would effect the ribbon customizaton.

Thanks in advance, LibT
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Update:
A straight copy (of sheets and export/import of modules & forms) does not fix this issue . Corruption copies too!
 
Upvote 0
protecting a workbook can be inevitable. in the event that workbook is protected and we got the "File contains corrupted data." error. any workarounds?
 
Upvote 0
That's......weird!! LOL, what I mean is...I have several WB's (add-in's actually) that I change/update/revamp pretty regularly with the custom UI editor, and they are all protected and I've never had a problem.

EDIT: The VBA projects are protected but I suppose the WB's themselves aren't. So maybe it's not so weird afterall :)
 
Upvote 0
protecting a workbook can be inevitable. in the event that workbook is protected and we got the "File contains corrupted data." error. any workarounds?

unprotect the workbook!
is there any reason why you can't save the workbook after unprotecting then open in the custom UI editor, make changes, save, open in excel and put protection back on?
 
Upvote 0
Yeah, my error is for server side processing via open xml.
This error occurred when a protected workbook is not saved in open xml format. Attempt to process the file via open xml produce the "File contains corrupted data" error.

Not exactly a VBA issue. :x
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top