Hi,
Pretty simple question, but I can't find an answer anywhere: how can I save the selected shape in PowerPoint as a picture using VBA?
What I want to get is an SVG to WMF file conversion macro. Now that PowerPoint has good SVG support, it does it pretty well manually. Here's what I have so far:
Sub svg2wmf()
svgFile = "path_to_svg_file"
'Insert the picture
ActiveWindow.Selection.SlideRange.Shapes.AddPicture( _
FileName:=svgFile, _
LinkToFile:=msoFalse, _
SaveWithDocument:=msoTrue, _
Left:=50, _
Top:=50).Select
'Convert into shape (this is the only way I could find, maybe there's a better one now
Call CommandBars.ExecuteMso("SVGEdit")
'Now, how to I save the currently selected shape?
End Sub
In the end, I want to wrap it into a VBS script, but I'm still missing the last bit.
Thanks!
R.