Author Topic: Excel VBA - Commands AutoCAD  (Read 4410 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2599
  • I can't remeber what I already asked! I need help!
Excel VBA - Commands AutoCAD
« 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!
Civil3D 2020

Patch61

  • Guest
Re: Excel VBA - Commands AutoCAD
« Reply #1 on: August 07, 2014, 03:04:05 AM »
A space in your string, " ", will tell AutoCAD to use [Enter].

IBIEINIID

  • Guest
Re: Excel VBA - Commands AutoCAD
« Reply #2 on: August 15, 2014, 09:50:39 AM »
and for tab, vbTab or chr(9). believe both of those work.