Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to open a CSV file in Excel and have Excel be visible and active. I tried:
(setq *ExcelApp% (vlax-get-or-create-object "Excel.Application")) (vlax-invoke-method (vlax-get-property *ExcelApp% 'WorkBooks) 'Open filename) (vla-put-visible *ExcelApp% :vlax-true) (vlax-release-object *ExcelApp%)(gc)
But this wouldn't make Excel visible if another excel file was already open. The only other way I know to open an external program is with startapp. However, that only works if you know the path to Excel. I want this to work on many computers, with unknown versions of Excel, thus unknown paths. Is there a way to find the local path to Excel from AutoCAD?
Solved! Go to Solution.