VBA error file type (Excel 95 workbook)

Hand5841

New Member
Joined
Apr 26, 2021
Messages
3
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
Hi, hoping someone can shed some light on this query please.

Up until last week I was using a macro to open a worksheet in a directory, which worked fine.
However this morning the macro is coming up with the message.
1619436970735.png


The strange thing is that the file the macro is opening is a 97-2003 workbook (I checked the properties) NOT an Excel 95 workbook (which are correctly blocked in the Trust Settings). So I have no idea why this error prompt would appear.
Has anyone else seen this before?

thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
the file the macro is opening is a 97-2003 workbook (I checked the properties) NOT an Excel 95 workbook
If you mean that you looked at the properties in Explorer, they will report is as a 97-2003 workbook based on the file extension, even if it were saved as a 5/95 workbook.

Assuming you can open the workbook manually, what does:

Code:
?activeworkbook.FileFormat

return in the immediate window?
 
Upvote 0
Solution
OK so you are right Rory, looks like it is file type Excel 95. Thanks I have learnt something.

I can only assume that our Group IT have updated the Trust Center settings over the weekend, blocking all Excel 95 workbooks as I have had no issues with this prior to today.
The file I am trying to open with the Macro is automatically downloaded into Excel from another system and the filetype is set within that , and has been for years.
A call to Group IT I think :(
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,373
Members
448,888
Latest member
Arle8907

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