TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: 911 on March 27, 2021, 10:23:52 AM

Title: autocad to open an excel file
Post by: 911 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?
Title: Re: autocad to open an excel file
Post by: Biscuits 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"))