I am trying to export a chart from Excel to either the wmf or emf format.
The code works if you export to GIF but not with WMF as the filtername.
This works:
Through this forum entry you can find the marvelous Stephen Bullen's Excel Page and download the PastePicture utility which shows how you can export to the WMF format.
It basically copies the chart, pastes it into the clipboard as a picture and saves its content into a WMF file in a few lines of code.