Problem With VBA in Windows 7
Hello AUGI Members,
I currently have a number of VBA utilities I use in our AutoCAD environment. Currently we are using AutoCAD 2009 on a 32 bit workstation with Windows 2000 Pro OS. We are now begining our migration to a 64 bit workstation with Windows 7 OS first for AutoCAD 2009 and eventually for AutoCAD 2011.
On the Windows 7......64 bit workstation I have a problem with all of the VB scripts. They begin to run and the form is displayed in AutoCAD but as soon as I select anything (field, radio button, drop down list, checkk box, etc.) on the form I get an error and asked if I want to debug.
Is there initial basic changes I need make in the code to make it functional in the 64 bit Windows 7 environment.....?? In the past when we migrated to newer versions of AutoCAD......I occasionally needed load in additional "References" Do I need to do that now or will I be required to step through the debugger one step at a time to try to determine what the problem is....??
Any assistance would be appreciated.....!
Regards,
Vince
Re: Problem With VBA in Windows 7
It's probably references, not anything particular about Win7 x64.
We are running older VBA code successfully in 2009 on Win7 x64, after updating some references.
Use VBAMAN to load the .dvb file, then VBAIDE to open the editor.
Then go to Tools>References and see if anything is missing....
Re: Problem With VBA in Windows 7
Thank you R.K. for your response....!
I did check the references however, there is nothing missing but I am still getting an error.
This is a routine to process a batch of drawing files and when the file selection box opens and I try to select the files I get the error.
Do you have any ideas or suggestions....??
Regards,
Vince
Re: Problem With VBA in Windows 7
What is the error message?
Is it a VB error or a user defined error?
Can you post a screenshot?
Does this same application still run OK on your Win2k+Acad2009 setup?
Re: Problem With VBA in Windows 7
Thanks Again R. K. I appreciate your assistance...!
The same VB code work OK on a 32bit workstation with Windows 2K and AutoCAD 2009...the problem only exists on the 64bit workstation running Windows 7.
I have attached a screen shot of the initial error message that appears after I hit the Browse button and try to select the drawings. You can see that the "Select Drawing Folder" has a list of files but the error message appears and I can not do anything else.
Regards,
Vince
Re: Problem With VBA in Windows 7
That is a basic VB error. What do you get if you press DEBUG?
What is behind the Error dialog? Is it a grid of any sort?
Re: Problem With VBA in Windows 7
Hi R.K.,
Attached is the screen that appears after I hit the "Debug" button.
Thanks again for all of your help.....!
Vince
Re: Problem With VBA in Windows 7
Quote:
Originally Posted by
vferrara
Hi R.K.,
Attached is the screen that appears after I hit the "Debug" button.
Thanks again for all of your help.....!
Vince
Almost impossible to debug without having the code. I wonder what "SBar" is?
A control on your form perhaps? Perhaps this control isn't registered or even available on the Win7 box?
Just guessing....
Re: Problem With VBA in Windows 7
R.K.,
Let me know if you want a copy of the VBA ".dvb" file.......I will post it for you.....!
Thanks again,
Vince
Re: Problem With VBA in Windows 7
Quote:
Originally Posted by
vferrara
R.K.,
Let me know if you want a copy of the VBA ".dvb" file.......I will post it for you.....!
Thanks again,
Vince
Sure, I'll take a look if you don't mind sharing.