One of my excel (excel A) shut down, when I try View Macro. I have enable all macros and when I try view macro from another workbook (when excel A is closed) I can. But when I have open Excel A I can not look on any macro in any workbook. It always shut down all workbooks I have open. I edit excel A 5 day ago and it works fine.
Any idea how to fix it?
I already try reset PC, open from empty excel (open and repair, open read only, ...) Nothing helps
Thanks everybody for help. At the end i fix it this way.
Open and Repair and choose Extract Data. I have to add macro buttons again, but I can view and modify macro codes :)
Related
Suddenly I have a weird problem with my Excel app.
I've looked the internet and in this site, found similar problem but it seems their problem is because of some codes. While mine, there is no code at all.
At first, after I close my xlsm work file (which has some modules with the code), then I open the VBA editor, sometimes it gives me message box "Out of Memory", sometimes it gives me "catastrophic failure" message box, sometimes there is no message box, but one thing for sure, in the VBA editor it still show the workbook which I've just close.
Strange thing, if I open the Excel app first (which gives me a blank worksehet by default), then I double click my xlsm working file, then close it, then open the VBA editor, there never any message box and in the VBA editor also there is no workbook which I've just close.
So it happen only if I directly open my xlsm working file... or any other xlsm file which has a module, even a blank module.
It doesn't happen if I directly open (by double clicking) an xlsx file.
Curious, I open the Excel app (it gives me a blank worksheet by default), Insert a blank module in VBA editor then save the workbook as Book1.xlsm.
.
.
.
Then I close the workbook.... and I see that in the VBA editor it still has the Book1.xlsm there.
.
.
.
Then I just close the Excel app, and open it again. Then I double click the Book1.xlsm.
Close the Book1.xlsm, there is no Book1.xlsm left in the VBA editor.
.
.
.
Then I close the Exel app. I directly double click the Book1.xlsm
Close the Book1.xlsm. Again, there is still Book1.xlsm in the VBA editor.
I've tried to repair the Microsoft Office 2010 via Control Panel ---> Programs.
After it's done, MS Office ask to reboot. So I reboot. Directly double click the Book1.xlsm, close the Book1.xlsm. No joy. VBA editor still show Book1.xlsm left there.
Although I realize that maybe the last resort I need to do is to uninstall MS Office and then reinstall it back, but still I wonder, if anyone here know what cause this kind of problem ? What cause a blank xlsm workbook with a blank module - after it close, the VBA editor still show it ?
Why if I open the Excel app first, then open the xlsm file, the problem does not exist ?
FYI, all the subs in my working xlsm file can still run without problem.
Any kind of explanation would be greatly appreciated.
Thank you in advanced.
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.
My Excel file had a load of macros and now when I click Developer - Macros, they don't show up in the list, the list is empty. How do I fix?
Hi this has 100% worked for me in all situations, if it is a macro file (in my case at least).
Open the file in protected mode (usually I save it on the share network so it prompts me to "Enable Content"). You must make sure you're in protected mode so no macros/libraries are activated.
DON'T ENABLE CONTENT
Go to Developer, Visual Basic, then click on "Debug" and click on "Compile VBA Project".
Save the file -- > Close - - > Reopen.
I have seen this happen multiple times, and eventually found a fairly easy solution.
To first summarize the problem, we have an excel workbook with macros. After saving and latter reopening the workbook, the macros are no longer there. Even selecting alt F11 ,fails to show any macros, even though macros are enabled in trust center.
The solution which has worked for me each time is to simply do the following.
Copy the Excel file to a thumb drive, and then open on a different computer. When the file opens, you will see an option at the top of the worksheet to Enable Functions. Click yes. At this point you can click alt F11 to verify that your macros are there. Assuming they are (this has worked for me every time), simply save the file, and then save back to your original location. When you open the workbook yur macros will be visible.
Good luck, and keep Excelling.
An even easier solution that has also worked for me 100% of the time is to open the file normally, and instead of clicking “enable content,” use shortcut alt f11 to open the VBA window. You should see your macros, save the file and reopen and “enable content” should work fine.
Surprisingly easy way to get it back.
Without the file open, right click on it.
Click on RESTORE PREVIOUS VERSIONS
It'll give you a list of previous days copies. Just try opening one of the ones from a previous day that the macro worked. The missing macro appeared in one of those for me when I opened it.
I had this same issue, but I was not able to open the modules in the VBA editor. I solved it by emailing a copy to myself, then opening it from outlook (with macros disabled). Then I compiled the VBA and saved it. The macros are back :)
I am developing an excel "application" that will be distributed to a few users, so it has a lot of macros/vba code on it. The workbook is about 2MB right now, so it's not incredibly big.
I was developing it on excel 2013, however my workstation had a problem and I had to work on it from a computer with excel 2010 for about a week. Problem is, when I came back to excel 2013, whenever I try to save the workbook(on excel 2013) it immediatly stops responding. When the program closes, excel is never able to recover anything and says the file is corrupted. The problem simply does not occur on excel 2010, where everything works perfecly and I can save it OK.
Does anyone have any idea what might be causing this? I have tried removing a few sheets and saving the workbook afterwards, to test if a specific sheet was corrupted/causing problems, but even after I remove all the sheets from my woorkbook (and just leave a new blank sheet on it) it still freezes when I try saving.
It's important to note that the workbook in question uses a lot of excel features, meaning it has conditional formatting, defined names, activeX controls, shapes, formulas etc.
Well, I did what Ralph suggested and created a new excel file, then copied everything from the old workbook to the new one. Now it works fine. Apparently that was my only way out, the file was probably corrupted in some way.
I am using Excel 2010 and am having difficulty with one old workbook created in Excel 2003. Lots of symptoms to report!
No other workbooks are giving me this problem. This problem file usually causes "MS Excel - (workbook name.xls) [Compatibility Mode] (Not responding) and a blank screen apart from the task bar and this Excel message on a single line across the top of the screen. Waiting doesn't solve the problem. If I close Excel and choose the "Close program" option, it sometimes shows me the file as I remember it for a couple of seconds, then the program closes. Re-opening the file just gives the same behaviour again. During the first few seconds of loading, I can see the message "Contacting server for information" at the bottom of the Excel screen.
In Task Manager I can find EXCEL.EXE *32 running. I'm using Windows 7 Pro 64 bit.
This is a file I use regularly in projects as a specialised calculator, and so I re-copy it each time and save it to save the calculation records in the project file. I've found that versions of the workbook created even several years ago and have given no trouble until now all suffer this problem, so it looks like a problem with Excel 2010. This is the first time I've tried to open these files since migrating from a Win XP computer running Excel 2003.
Please can anyone help me to open the file and to resolve the problem?
Thanks
There might be a calculation or a marcro activated on start up that messes things up.
Try the following:
Open the Excel application, with a blank workbook. Set calculation to manual. Now look up your Macro settings and set these to "disable with notifications".
With these things set, open your misbehaving workbook again and see what happens now. Dont let the macros (if any) start yet! Open the VBA Editor window and check for a script in Workbook called Workbook_Open. If that is present check its content or put a break in and debug it.
Let us know what you find, if any.
UPDATE:
It sounds like there is a database link to an external source that is trying to refresh on startup but isnt working correctly (anymore). I now remember likewise behaviour when I had an Excel workbook with tons of SQL queries in it that (in case of showing a complete table or view by applying SELECT * FROM ...) could overlap other data and that would create autoshutdowns for me. Change the option in the Trust Center for External Content to Disable when you open this workbook and let us know!
I have a client with the same issue. The problem was resolved by removing all the logo's (Images) from the sheet. It appears that the logo contains a link to some web site. I copied the logo into paint and copied it back.
Problem Solved!
It appears that an object placed in the sheet can have its own links embedded in it???
I hope this helps!