
You can use CopyMetaFile to save it to a file. CF_ENHMETAFILE it is a handle to a GDI MetaFile object.GetClipboardData (return value depends on clipboard format.).Unfortunately I cannot post full code because it doesn't belong to me.

I did some research before posting this question, and I couldn't find any working solution to the problem.īasically you need to use VBA to select the item, execute "Copy", then use the Clipboard functions to retrieve the data and save it to a file. but it should be integrated with vba so I could work on those images, and do other stuff with them (like I said, for example - uploading them to some images site automatically). I'm looking for a way to do it anyway, even if this would involve some outer non-built-in-vba code. but for some reason, Word doesn't have that capability. In Excel there is a built in option to copy content as images, and then you can paste it anywhere you want. I want to use it, to extract equations that I write in the document, as picture, and than upload them to some of the free images sites to publish.īut it will be even more useful if I would be able to extract large parts of the document, instead of just the equations (even though, extracting the equations would satisfy me for now). I want to write a macro that saves the selected content in the document, as image. I'm working on Word 2010, and been using the equation editor for some time now.
