At odd intervals I will get an error in my Excel VBA that tells me: "Excel has caused an error in VBA332.DLL. Excel will now close. If you continue to experience problems, try restarting your computer."
Sometimes restarting will help. Other times not. Sometimes, I go through all the coding, leaving out all but certain bits till one of the bits left in causes the error. Then I know where to look for a problem. Sometimes rewriting the part solves the problems, sometimes not. Once, just the act of blanking out the bits and bringing them back solved the problem. That time, the error was happening when I brought in a form. Mostly and almost always the error happens when I use a keyboard shortcut to save the file or to print it. The VBA code to save the file upon closing the form does not give the error and it does save the changes in the VBA.
I've defragmented many times, and sometimes that solves the problem, but there is no way of telling when it will crop up again.
Can anyone please tell me why this error happens? Kaulana (aka Bob)
Sometimes restarting will help. Other times not. Sometimes, I go through all the coding, leaving out all but certain bits till one of the bits left in causes the error. Then I know where to look for a problem. Sometimes rewriting the part solves the problems, sometimes not. Once, just the act of blanking out the bits and bringing them back solved the problem. That time, the error was happening when I brought in a form. Mostly and almost always the error happens when I use a keyboard shortcut to save the file or to print it. The VBA code to save the file upon closing the form does not give the error and it does save the changes in the VBA.
I've defragmented many times, and sometimes that solves the problem, but there is no way of telling when it will crop up again.
Can anyone please tell me why this error happens? Kaulana (aka Bob)