Excel OLE Link - fails to launch server application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have noticed a problem using pastespec and Excel with MEP 2018. AutoCad fails to close the Excel process it opens which is a mistake in AutoCad code, or so I think.
Products used: AutoCAD MEP 2018 _VERNUM = "O.107.0.0 (UNICODE)" , MS Excel 365 (Version 1707 Build 8326.2073), Windows 10
PROCESS
1) create excel spreadsheet and save in directory
2) highlight a section of the spreadsheet and press CTRL-C to copy
3) In MEP2018, type pastespec and press enter
4) Select radio button for PASTE LINK (not paste) and select Microsoft Excel Worksheet
5) click OK and locate as desired.
6) Close Excel (file was saved already)
7) Save and exit Autocad.
PROBLEMS
1) Autocad does not close the excel file. If you try to edit the Excel Spreadsheet in Excel, you get a message that the file is locked. If you open Windows Task Manager, and scroll down into Background Processes, you will find a copy of Excel running.
2) If you doubleclick on the OLE in Autocad at a later time, it says FAILED TO LAUNCH SERVER PROCESS.
This is esp annoying if you are the engr of record and the person who last left the process running in Autocad left for the day, and you want to change something.
Running "TaskKill /im excel.exe" at cmd line at applicable station where process is hidden will fix this problem, but... if you have Excel open on purpose on that station, well, better save first. TaskKill is aptly named.
I filled out a bug report on this. If you believe this behavior is an 'undocumented feature', let me know, otherwise - FYIO.