SimonBailey
New Member
- Joined
- Feb 4, 2010
- Messages
- 13
Hi
I have a Macro to save a spreadsheet by a variable name as an xlsm file. The macro works fine if run via the VBA editor and if a button on the spreadsheet is linked to the macro. However I have several macro buttons that are on the Add-Ins tab. When this macro is run from the Add-Ins tab, it all works and saves the file as the correct name, but then an error box pops up which says Incorrect function, as there is no error message the other 2 ways I can only assume that it is something to do with it being in the Add-Ins ribbon. All the other macros that are in the ribbon work fine though. Anyone got any ideas.
Thanks
Simon
I have a Macro to save a spreadsheet by a variable name as an xlsm file. The macro works fine if run via the VBA editor and if a button on the spreadsheet is linked to the macro. However I have several macro buttons that are on the Add-Ins tab. When this macro is run from the Add-Ins tab, it all works and saves the file as the correct name, but then an error box pops up which says Incorrect function, as there is no error message the other 2 ways I can only assume that it is something to do with it being in the Add-Ins ribbon. All the other macros that are in the ribbon work fine though. Anyone got any ideas.
Thanks
Simon