I wrote a macro that consolidates two files into one new file on excel 2007. I sent it to someone who tried to run it on his excel 2010 and he received the error in the Title of this question. We have tried to
make sure he had the Solver addin activated and a reference to it checked
pasted this in the immediate window application.run "solver.xlam!auto_open"
I tried to disable the Solver addin on my end, save and resend to him
make sure macros were enabled
The solver addin isn't even necessary for this program, as far as I can tell. I should mention that the macro works great on my excel 2007.
Thoughts?
SOLVED: The strangest thing happened. When the workbook got emailed the button the macro was originally assigned to got changed to solver.xlam. All I had to do was instruct him to reassign the button to my macro. How odd is that?! Curious if anyone else has experienced anything like that.
Related
I have a workbook in which I consolidate data from various CSV files. There are a number of macros in this file including ones to add new sheets to the file, which is on a shortcut key Ctrl+Shift+N. This has been working perfectly for many years. This morning the shortcut key does absolutely nothing. If I go to the Excel developer tab and click on the Macros button, the list of macros is empty. However, if I open VBA I can run the macro from there and it still works perfectly.
I run Office Professional Plus 2019 and it ran an update yesterday. Does anyone know of a new setting introduced that may hide the macros in Excel itself. Note that macros are enabled on this workbook.
Just for closure should someone else stumble across this. The problem was related to the specific file. It somehow got "partially" corrupted. Still worked and could fire macros from VBA IDE as well as linked buttons, just not with shortcut keys as macros not "visible" in Excel view. File degraded further to a point where it could no longer save.
I have some macros attached to buttons in the Quick Access Ribbon. All but one of the buttons have been functioning normally, so I'm not sure when this started.
I tried to use a less-used macro button this morning called Unhide All Sheets and it threw this error:
Cannot run the macro 'PERSONAL.XLSB!UnhideAllSheets.UnhideAllSheets'. The macro may not be available in this workbook or all macros may be deleted."
So I went to review my code and all my macros are invisible from the front-end. I select Developer -> Macros, the list is completely empty, and when I attempt to create new buttons on the Quick Access Toolbar, the macro list there is also completely empty.
When I hit Alt + F11 to open the VBA editor, I can see and update macros in specific workbooks and in my personal workbook. Most of them still run, although the offending macro (UnhideAllSheets) throws an Unexpected Error (35005) when run from the editor.
Anybody ever seen this before? I've been googling for an hour with no results.
Most Macro Buttons still work
Nothing on the Macro List
Customize Ribbon can't see the macros
Still visible and functioning in VBA Editor (except for "UnhideAllSheets")
I have same issue and I manually checked/marked atpvbaen in the tools>references. This has solved my problem !
I was facing a similar issue, where some buttons were working and some weren't. What I noticed was my module's name was similar to my procedure's (macro's) name. I'm not aware of the reason, but I when ensured procedures names' are different than the module names.
Recently I've stumbled upon a strange behaviour of VBA. In my Microsoft Excel Macro-Enabled Worksheet I have several sheets, with one named "Log". While I was debugging a code, I added a new watch with an expression Worksheets("Log"). When I click on the + box in front of it to expand the expression, Welcome to Outlook 2016 wizard pops up?!
On each subsequent click on the expression, New Profile window pops up.
Funny thing is, I don't even use Outlook and it alone cannot be uninstalled from the system and rest of the Office package. So, what is happening here and how can I prevent this strange behaviour?
I have it too, also when I have the watch set to a page of the worksheet.
It seems to happen when I forget to activate the sheet before I access it. After doing that the Macro and watch behave as expected.
I have an application created on Excel file with macros. It needs to be compatible with all Excel versions starting from 2007, both PC and MAC.
I have problem with pictures on MAC 2016. Whenever I save file, close it and reopen again I can't see pictures on the sheet which was active one during saving. Do anyone know what the problem is and how to deal with it?
My end users are not experienced enough and they get panicked if they can't see proper buttons...
My solution is to change active sheet using Workbook_BeforeSave event, but on MAC 2016 version I can't get back, because Workbook_AfterSave event doesn't work at all. As you can imagine it is not very convenient for end user to change active sheet when you just want to save your work.
I will be very grateful for any suggestion.
I'm not sure whether it helps, But you can give a try
Try using Workbook_BeforeClose event.
or else try to acheive the same using your code like switching to the sheet whatever you need
Sheets("activesheet").Select
I, in fact two end users have seen a strange issue in Excel.
When they CTRL+X to cut some cells and CTRL+V to paste, it does copy/paste, not cut/paste
They said it is related to the new version addin I built. I do not use or change anything about copy/cut/paste in my code at all. I suspect it is some options in Excel, but not sure what it is.
Do anyone know how to fix the cut/paste issue in Excel?
Edit
my addin is written in C#, Excel DNA, NetOffice, Add-In express. It is a xll addin with ribbonX and also has UDFs. There is no VBA except during install/uninstall, I use VBA to install xll and xla.
xla returns descriptions for UDF and register help topics.
thanks
This is related to skype, not my code or anything. Once skype is unistalled, copy/cut/paste works fine. see http://answers.microsoft.com/en-us/office/forum/office_2003-excel/excel-2003-moving-border-when-copying-not-working/f55b0eab-13ff-489c-bd2d-d16937cd02ec?msgId=19e8fa3b-0ac2-4af0-bde7-5ac52d131f10