Incorrect Function After Running Saving Macro

SimonBailey

New Member
Joined
Feb 4, 2010
Messages
13
Hi
I have a macro that saves an excel file as a file name related to a variable in a cell. After updating to Excel 2007 I have ammended the file to save as an xlsm file. The macro runs from a button on the Add-Ins ribbon. These buttons are created when the spread sheet is opened, and all other macros work fine with the buttons. However this one gives an "Incorrect funtion" with the ! in the yellow triangle, pop up error box after the macro has run, even though it has saved the file correctly, has anybody any idea why this is please?
By the way, if running via a button or through VBA editor it works fine.

Thanks
Simon:smile:
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Thanks for your quick response. I had it set as a macro enabled book, but changed it to the fileformat:=52 shortcut in case this was the proble, but no joy. It seems strange that the problem only occures when running the macro via a button on the ribbon, not on a normal button or via the VB editor where all works fine.

Cheers
Simon
 
Upvote 0

Forum statistics

Threads
1,225,204
Messages
6,183,567
Members
453,169
Latest member
Marlon18

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