I have been trying to figure out how to open a specific sreadsheet from AutoCAD. I can open Exel by using (startapp "C:/.../exel.exe") without any problem, but how do I tell it to open a specific file?
Any ideas?
thank you for your help!
|
I have been trying to figure out how to open a specific sreadsheet from AutoCAD. I can open Exel by using (startapp "C:/.../exel.exe") without any problem, but how do I tell it to open a specific file?
Any ideas?
thank you for your help!
If this is just for you, then something like this should work, after you change the path to Excel if needed.
But if you are using this on different machines, then the path could be different. A better solution is to let Windows open the associated program.Code:(startapp "C:\\Program Files\\Microsoft Office\\Office12\\EXCEL.EXE" "C:\\Book1.xlsx")
There is an example here of opening a PDF, just change the name of the file to your Excel file and it should work no matter what version of Excel you have or where it's located on the system.
R.K. McSwain | CAD Panacea |
Click "Open" icon and type *.* on the file name tab and browse, then right click the file name and choose from options
Would the windows quick launch toolbar work for you?
I have a half dozen shortcuts to spreadsheets on the windows taskbar.
It can be set to autohide so it moves out of the way when drawing.
What about placing a hyperlink (Ctrl+K) on one of the objects in the DWG pointing to the file. Thereafter hold down Ctrl and pick the object.