Excel File Format and Extension don't match error - excel

Excel 2019/Windows 10 - I have recently been getting an error (every time) when starting Excel. The error is [The file format and extension of 'Loading' don't match. The file could be corrupted or unsafe.]
While doing a Google search, this error normally occurs with a corrupted spreadsheet. I am getting this error when starting Excel WITHOUT specifying any file to open. The NEXT screen I get after I click 'OK' on the error asks if I want a blank workbook, or lists recent spreadsheets to choose to open.
I have done a search on my computer... there is no file called Loading.x* on my computer. I have disabled all COM add-Ins, and I get the same error.
Other than this annoying error, I can still open all my files, or create a blank file. I only get this error on startup. Once I get the error, I can open any number of workbooks without getting the error again.
If I open any Excel file by clicking on it, which then starts Excel, I still get the error referencing the 'Loading' file (i.e. the exact same error as above). There is no reference to the filename that I am actually opening.
Any idea how to fix this?

Related

Opened up a .iqy file yesterday in Excel, now every time I try to open a new workbook, Excel tries to open up this file

I downloaded a sharepoint list as an .iqy file and used it in a Excel workbook. But, now when ever I open any Excel workbook it tries to open that file. To try and fix the issues I've:
-Deleted the .iqy file, now Excel just gives me the prompt it can't find the file.
-Removed the connection from the original workbook, but every new workbook still gives me an error looking for it.
-In the Trust Center, set Excel to not open untrusted .iqy files, still not working.
The connection to the iqy file does not appear in any new or old workbooks, and isn't in my recent connections. Also weirdly, it's trying three times to open the file (I have to click "OK" on three separate dialog boxes about the file missing).
Any ideas how to stop excel from trying to open this file every time?
Managed to fix it after stumbling through all the option in Excel. It had nothing to do with the connection. Somehow, the file was added to the "Add-In" list, so I had to remove it as an Add-In. I'll leave this question up for posterity.

How do I open my Excel sheets without VBA error message?

Excel automatically updated last week. Every spreadsheet I open now comes up with error code Run-time error'53':
File not found:
/Library/Application/Application Support/Adobe/MACPDFM/MacPDF.framework/Versions/A/MacPDFM
Help and End buttons show. Help does not describe my problem.
Clicking End twice gets rids of the error message and the spreadsheet opens. I have no idea how to solve this. I am not a programmer and I have not changed any settings in Excel.
Apparently your Excelfile contains a macro, who tries to open the following file when you open an Excel worksheet:
/Library/Application/Application Support/Adobe/MACPDFM/MacPDF.framework/Versions/A/MacPDFM
When this file is not present, you get the mentioned error message.
Seen the structure of the directory, I believe the Excelfile only can be opened on a Mac-computer (Microsoft-computers don't have the mentioned directory structure).
Verify if you're working on a Mac-computer or a Windows-computer and in case of Mac, check the presence (and read permissions) of the mentioned file.

Excel looks for other files that can't be found when opening "Sorry, we couldn't find ........"

I have an excel spreadsheet named "data_covnertot_0.25.xlsm" that has a tonne of VBA in it.
When opening, after the user clicks "Enables Macros" a couple of warnings appear.
These errors occur before any Macros have been run.
There are a few similar queries on Stack Overflow but they either haven't been answered or are regarding add-ons of which I am not using any.
The spreadsheet is saved on ProjectWise however, the error messages occurs regardless of where it is saved.
The error message is:
"Sorry, we couldn't find '...........Copy of data_covnertor_0.18.xlsm'. Is it possible it was moved, renamed or deleted?"
followed a second error message:
"Microsoft Excel cannot access the file '...........Copy of data_covnertor_0.18.xlsm'. There are several possible reasons"
The file name or path does not exist
The file is being used by another program
The workbook you are trying to save has the same name as as a currently open workbook
The spreadsheet works fine after clicking ok to both messages, bit as this will be used by a lot of people I want it to be clean and neat.
The file link in the messages is to a share point site, which is where the spreadsheet was saved before being moved to ProjectWise.
I've had a look through all the VBA, sheets etc, carrying out searches etc, and I can't find any reference to the copy of the old version of this spreadsheet.
Can anyone advise where I should be looking
In my case the cause of the error was a button (a form control button) that was referencing a Macro in a different workbook.
I found the offending button by symptomatically deleting sheets and saving copies of the workbook until the error disappeared.

ActiveX Control can't create object

I have a program that opens up a file, pulls data from it, and puts said data into the corresponding worksheet based on the some information form the file it opens (that part isn't important). I have a Power Query that tells me the names and locations of all the files within a specified folder.
The macro will open the sheet with the power query and begin opening/closing and pulling the data from the files one at a time. Up until now, it has run smoothly. However, today I received an error saying "ActiveX Control can't create object." I have never seen this error before. When I go to Debug, it shows me the line with the error:
ThisWorkbook.Worksheets("Query1").Activate
I am unsure as to why it would all of the sudden be erroring out. Any ideas?

Excel VBA macro fails when loaded from server, works when run from local disk?

I have written a macro in VBA. In short it runs on Auto_Open, displays a dialog box for user to enter some data, and when mandatory fields are filled, it populates a sheet in excel and saves as PDF or prints. Everything works perfectly, if the .xlsm file is opened from local disk (including opening from website, saving and then opening). However, if the .xlsm file is opened directly from a web server (intranet), everything works until the user tries to save as PDF or print. The error message is:
Run-time error '1004':
Application defined or object-defined error
and the offending line of code is:
Sheets("hakemus_laaja_FI (2)").Name = "hakemus"
(at the time of the error a sheet named "hakemus_laaja_FI (2)" exists on the workbook, whereas there is no sheet named "hakemus")
Furthermore, if the user doesn't have Office 365 but an older version of Excel, then even opening the .xlsm file directly from website works perfectly.
Any ideas what might be causing the error?

Resources