TheSwamp

Code Red => VB(A) => Topic started by: MSTG007 on March 10, 2014, 08:51:42 AM

Title: Excel VBA - Commands AutoCAD
Post by: MSTG007 on March 10, 2014, 08:51:42 AM
I have the following code:

Code: [Select]

 AcadApp.ActiveDocument.SendCommand "-xref" & vbCr & "detach" & vbCr & "*" & vbCr
 AcadApp.ActiveDocument.SendCommand "_layers" & vbCr & vbCr

How can I get AutoCAD to Either (TAB) or (ENTER) or (UP / DOWN ARROWS)?

I have a popup I want to tab until I get the button I would like to press.

Thanks!
Title: Re: Excel VBA - Commands AutoCAD
Post by: Patch61 on August 07, 2014, 03:04:05 AM
A space in your string, " ", will tell AutoCAD to use [Enter].
Title: Re: Excel VBA - Commands AutoCAD
Post by: IBIEINIID on August 15, 2014, 09:50:39 AM
and for tab, vbTab or chr(9). believe both of those work.