Starting Excel from within autocad with file?

Status
Not open for further replies.

MrM

Usenet Archive
Joined
Dec 19, 2001
Messages
1
Reaction score
0
Hi, I'm using autocad2002/NT4.0/Excel2002 and wondering how to open a file in Excel from within autocad. I have defined excel in .pgp and use getfiled function to get the file name but I don't seem to be able to pass the file to excel with (startapp "excel.exe" sfn) where sfn is the selected file - what am I doing wrong?

ToV
 
The dirty solution can bee to create a bat file starting excel jvm

MrM wrote in
4ax.com:

Hi, I'm using autocad2002/NT4.0/Excel2002 and wondering how to open a file in Excel from within autocad. I have defined excel in .pgp and use getfiled function to get the file name but I don't seem to be able to pass the file to excel with (startapp "excel.exe" sfn) where sfn is the selected file - what am I doing wrong?

ToV
 
MrM wrote:
Hi, I'm using autocad2002/NT4.0/Excel2002 and wondering how to open a file in Excel from within autocad. I have defined excel in .pgp and use getfiled function to get the file name but I don't seem to be able to pass the file to excel with (startapp "excel.exe" sfn) where sfn is the selected file - what am I doing wrong?

ToV

Quick and dirty way to do it:

Type "shell" on the command line (without the quote marks).

When prompted for the OS Command, type the name of the file you want to open (including the .xls extension).
 
Status
Not open for further replies.

Latest threads

Back
Top