TheSwamp
Code Red => VB(A) => Topic started by: ELOQUINTET on June 26, 2007, 12:19:35 PM
-
We have a routine we've been using in Acad 2006 but I just got word from a user that it gives the error below in 2008 but still works in 2006. I tried it on my computer and it doesn't work in either 2006 or 2008. I'm thinking I need to upgrade something but not sure what. Any advice would be greatly appreciated.
VBA Runtime error '-2145386476 (80200014)':
Key not found
-
Can you please post the code and show us what line it is erroring out on?
-
Hmmm I knew that was coming and was going to try to but I then realized that the person who wrote it who no longer works here password protected it so I can't open it. AAAAARGGGGH :pissed: I will have to crack it later this week then will be able to analyze what's going on. The thing I don't understand is that it works on my coworkers machine in 2006 but not mine anymore? Any clue what could cause this to happen
-
A difference in the two set-ups?
What does the program do in general?
-
Missing reference??
-
basically the program draws a reflected view of a shade on a radius. The tube diameter and rol diameter and the radius can be modified using reactors. I don't use it that much as we don't do that many radiused shade assemblies but when I do it is very valuable. I was thinking it is a reference problem too but cannot check until I can view the code. I guess I'll have to wait a few days.
-
It sounds like your are missing a registry key value or string.
Compare a working workstations reg to the one that does not work.
-
In my experience a "key not found" error generally refers to something missing ... a layer, linetype, shape or some other innocuous item that is hard to pinpoint.
Try running the routine from your installation of 2006, but using the drawing he says works in 2006, but does not work in 2008.
Something I have seen employees at some places do is make the program find a file on a network share. If that file no longer exists, meaning the company removed it from the system because the employee is no longer there or the ex-employee removed it when he left, the routine cannot find it, thus cannot continue.
-
Your right Keith. It is proably a layer, Thanks for the correction.