Excel 通过引用文件路径设置用户窗体中图像控件的值
为了避免必须将图像存储在工作簿本身中,或者首先将图像加载到工作簿中,然后从userform引用这些图像,是否有方法将userformExcel 通过引用文件路径设置用户窗体中图像控件的值,excel,vba,userform,Excel,Vba,Userform,为了避免必须将图像存储在工作簿本身中,或者首先将图像加载到工作簿中,然后从userform引用这些图像,是否有方法将userformimage控件中的图像值设置为特定的文件路径 比如: image_server.show set image_server.image_control_name = "C:\Users\user_name\Desktop\images\island.jpg" 显然,这很简单: image_server.Picture = LoadPicture(filepath)
image
控件中的图像值设置为特定的文件路径
比如:
image_server.show
set image_server.image_control_name = "C:\Users\user_name\Desktop\images\island.jpg"
显然,这很简单:
image_server.Picture = LoadPicture(filepath)