Help Urgently needed... here is the line of code
Capture.PNG
The error is
Capture2.PNG
Thanks
|
Help Urgently needed... here is the line of code
Capture.PNG
The error is
Capture2.PNG
Thanks
Last edited by yosegmail; 2019-03-25 at 09:12 AM.
There is no application called "Jo-PC". The argument is supposed to be the class ID of a program, e.g. AutoCAD. To find out what you need to use, open REGEDIT.exe and navigate to HKEY_Classes_Root and scroll down to the "AutoCAD" section. The value should be something like "AutoCAD.Application". If you have multiple versions of AutoCAD installed, you can open a specific version by adding the version number. For 2018, mine is "AutoCAD.Application.22". 2019 is "AutoCAD.Application.23".
As written, your code will always open a new instance of AutoCAD. If AutoCAD is already open, you could use that instance instead. See this post for some sample code. Don't forget to reset by using On Error GoTo 0.
Last edited by Ed Jobe; 2019-03-26 at 02:41 PM.