# Using os.startfile to open Excel but Slicer killed itself

**URL:** <https://discourse.slicer.org/t/using-os-startfile-to-open-excel-but-slicer-killed-itself/44095>\
**Category:** Support\
**Tags:** python\
**Created:** [August 15, 2025, 3:16pm UTC](https://discourse.slicer.org/t/using-os-startfile-to-open-excel-but-slicer-killed-itself/44095 "2025-08-15T15:16:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiden.zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aiden.zhu/32/67145_2.png) [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Post date:** [August 15, 2025, 3:16pm UTC](https://discourse.slicer.org/t/using-os-startfile-to-open-excel-but-slicer-killed-itself/44095/1 "2025-08-15T15:16:59Z")

</div>

Operating system: Windows 11  
Slicer version: 5.8.1  
Expected behavior: open a csv-file via Excel  
Actual behavior: After Excel opens the file, Slicer-3D kills itself (crash?).

```auto
if self.flt_OpenExcelNow_CheckBox.isChecked():
    try:
      tmp= os.startfile( "the_file_nam.csv" )
      print(tmp)
      return
    except:
      print('Done or something wrong? ')
      return

```
