Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

VBA - ActiveSheet.Pictures.Insert(Map) no longer embeds image in Excel 2010. Is this a bug?

$
0
0

My organisation uses VBA macros in Excel 2003 and 2007 to paste images (typically png) into formatted Excel reports. We normally do this with the following function:

ActiveSheet.Pictures.Insert(Map)

However, since upgrading to 2010 the function no longer works properly. Instead of embedding the image into the Excel document, it just embeds a hyperlink pointing to the file on my C drive. This of course means that I can't share the file with other users unless they also have the same folder structure with the png files in them.

Why does this happen? Why has this been broken in 2010? How do I submit a bug report? And when will it be fixed?

I'm aware that a simple workaround is to do the following:

ActiveSheet.Pictures.Insert(Map).Select
Selection.CopyPicture
Selection.Delete
ActiveSheet.Paste

...but the purpose of my post here is to clarify that what I'm seeing is intended or not. Thanks


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>