简体   繁体   中英

MS-Excel insert a image through macro

I want to insert a image in MS - Excel 2007 with source of the image being xyz.com/234.png

Now, I want to format the url of this image using some cell value. Is it Possible.

Thanks,

ActiveSheet.Shapes.AddPicture("http://xyz.com/234.png", 
   True, True, left, top, width, height)

but I'm not sure if it'll accept a URL in place of an image file name though.

documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM