Macros for saving the BOM to Excel

Is it possible to create a macro that generates a BOM in an assembly, hides it, and then displays a window to save this BOM to an Excel file?

Answers 4
DG
DG 2025-06-05

Why you want to hide it, and why not export to Excel?

Check following macro by @AT 

 

CO
CO 2025-06-05

Click the top left corner of your BOM and select "Save As" to an excel file. If you dont want it appearing on your drawing, slide it off the drawing sheet.

DM
DM 2025-06-05

dang a few click or run a macro?  What is wrong with keeping the bom in the assembly anyway.  other than it tends to get in the way if you are trying to modify it.  

OP
OP 2025-06-06

Thank you. Because I don't want the BOM to be displayed in the workspace. 
But if there is already a excel-file next to my assembly, the macro shows an error when trying to save the BOM to Excel.