Author Topic: open Excel file whit a lisp  (Read 1564 times)

0 Members and 1 Guest are viewing this topic.

Atwist

  • Guest
open Excel file whit a lisp
« on: August 21, 2012, 11:24:31 AM »
Hello,

I try using a button in my lisp to open an excel sheet but I keep getting error messages.

Code: [Select]
((= op "cadtool")
       ((Start "T:\\Excel bestanden\\cadtools.xls")
)
This is the error message
Error: no function definition: START

but the function is defined
         
Code: [Select]
"bbrr" "gewicht"
"slot" "laytool" "words"
"hydro" "cadtool"
And the button is also good
Code: [Select]
" : button {"
 "          key = \"cadtool\";"
 "          label = \"Cadtool programma\";"
 "          }"
What is going on here

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: open Excel file whit a lisp
« Reply #1 on: August 21, 2012, 11:32:24 AM »
What is the function definition for your 'start' function?

How about using simply:

Code - Auto/Visual Lisp: [Select]
  1. (startapp "explorer" "T:\\Excel bestanden\\cadtools.xls")

Atwist

  • Guest
Re: open Excel file whit a lisp
« Reply #2 on: August 21, 2012, 11:38:06 AM »
Thank you Lee,

 This works and the error is gone