Author Topic: autocad to open an excel file  (Read 944 times)

0 Members and 1 Guest are viewing this topic.

911

  • Mosquito
  • Posts: 1
autocad to open an excel file
« on: March 27, 2021, 10:23:52 AM »
Hi i'm new to this forum
I'm trying to add a macro (or a lisp ) in autocad that will startup excel so i may open an excel file that is placed in a certain folder. Does anyone know how to do this?

Biscuits

  • Swamp Rat
  • Posts: 502
Re: autocad to open an excel file
« Reply #1 on: March 28, 2021, 07:20:28 PM »
This is what I've been using....just replace XXXstuffXXX with yours.

Code: [Select]
(startapp "C:/Program Files (X86)/Microsoft Office/Office16/excel.exe" (findfile "C:/XXXfolder nameXXX/Excel/XXX
Exce-File-NameXXX.xls"))