Message 1 of 3
Check if autoCAD is open
Not applicable
07-05-2016
10:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there!
How can I writhe a VBA to check if autoCAD Application is open, and when YES then call a Sub and when NO make a message box that autoCAD is close.
Below have you a VBA that I whant to integrate in Excel.
Sub runsub(control As IRibbonControl)
Dim acadApp As AcadApplication
Dim acadDoc As AcadDocument
If acadApp Is Nothing Then
MsgBox "AutoCAD is closed"
Else
Call Zeichnung
End If
End Sub
Can you please help me out?
Best regards
Alex