Excel VBA Imagebox活动x控件 [英] Excel VBA Imagebox active x control

查看:155
本文介绍了Excel VBA Imagebox活动x控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Excel电子表格,当我点击位于sheet1中的单元格时,我希望工作表2中的图像显示在工作表1上的ActiveX Imagebox1中。



我是VBA的新手,任何帮助都将不胜感激。



谢谢

I have an Excel spreadsheet that I would want an image from sheet 2 to appear in an ActiveX Imagebox1 on sheet 1 when I click on the cell that is located in sheet1.

I am new to VBA, any help would be appreciated.

Thank you

推荐答案

我不建议在Sheet上使用ActiveX组件。而不是直接插入图片: Shapes.AddPicture Method(Excel) [ ^ ]



通过 Cell.Top [ ^ ],Cell.Left [ ^ ]定义图像的左侧和顶部坐标。
I do not recommend to use ActiveX component on Sheet. Rather than it, insert picture directly: Shapes.AddPicture Method (Excel)[^]

Pass Cell.Top[^], Cell.Left[^] to define left and top coordinates for image.


这篇关于Excel VBA Imagebox活动x控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆