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
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

LibT

New Member
Joined
Jul 7, 2009
Messages
19
Update:
A straight copy (of sheets and export/import of modules & forms) does not fix this issue . Corruption copies too!
 

wtoh

New Member
Joined
Jan 21, 2010
Messages
2
protecting a workbook can be inevitable. in the event that workbook is protected and we got the "File contains corrupted data." error. any workarounds?
 

jproffer

Well-known Member
Joined
Dec 15, 2004
Messages
2,643
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 :)
 

LibT

New Member
Joined
Jul 7, 2009
Messages
19
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?
 

wtoh

New Member
Joined
Jan 21, 2010
Messages
2
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
 

Watch MrExcel Video

Forum statistics

Threads
1,102,274
Messages
5,485,783
Members
407,515
Latest member
franjey

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top