How to use VBA to obtain a material list for parts or assembly drawings, export it to Excel with thumbnail images?

How to use VBA to obtain a material list for parts or assembly drawings, export it to Excel with thumbnail images?