VB projects and XLM sheets cannot be saved in a macro-free workbook

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
2,826
Office Version
  1. 365
Platform
  1. Windows
I've had this macro running for a couple years with no issue. It basically creates a copy of a sheet in a new WB and then saves it as a .XLSX. With suppressing the alerts it has worked fine until yesterday. I did inspect my file name and is properly formed with .XLSX at the end.

This was posted with no response yet:
Redirecting

Is this a new bug in Excel?


1702075448418.png


Application.DisplayAlerts = False 'Don't display warning about changing file extension
NewWB.SaveAs Filename:=NewPathFile, FileFormat:=xlOpenXMLWorkbook 'Save to xlsx
Application.DisplayAlerts = True
 
Microsoft® Excel® for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20028) 64-bit
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I'm on Microsoft 365 MSO (Version 2311 Build 16.0.17029.20108) 32-bit
 
Upvote 0
I'm on Microsoft® Excel® for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
 
Upvote 0
I get the same error with
Microsoft® Excel® for Microsoft 365 MSO (Version 2312 Build 16.0.17126.20014) 64-bit
Literally just updated it. to the above version
 
Last edited:
Upvote 0
I have just updated it and still get the same error . . .

Microsoft® Excel® for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20108) 32-bit
 
Upvote 0
What dialog do you get without the displayalerts lines in? Is it the old one that defaults to Yes as the response, or the new one that defaults to Go Back?
 
Upvote 0
Is the VBA portion a separate build from the spreadsheet portion? Is there a DLL that needs an update that controls the DisplayAlerts?
 
Upvote 0
What dialog do you get without the displayalerts lines in? Is it the old one that defaults to Yes as the response, or the new one that defaults to Go Back?
I get
1702395393121.png
 
Upvote 0
What dialog do you get without the displayalerts lines in? Is it the old one that defaults to Yes as the response, or the new one that defaults to Go Back?
I get the same as Mark and Jeffrey . . .
 
Upvote 0

Forum statistics

Threads
1,215,701
Messages
6,126,292
Members
449,308
Latest member
VerifiedBleachersAttendee

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