Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望将一个形状的填充属性(其中形状 3 包含用户图片)设置为另一个形状的填充属性,但这似乎不可能。这是我的代码。
Sheet1.shapes("Rectangle 5").Fill = Sheet1.shapes("Rectangle 3").Fill
如果也尝试过。
Sheet1.shapes("Rectangle 5").Fill.UserPicture = Sheet1.shapes("Rectangle 3").Fill.UserPicture
请指教。
谢谢,
UserPicture是一种方法,似乎无法获取使用此方法应用的形状图片的信息。
UserPicture
我可以建议,在我做的简单测试中,朝着这个方向前进——通过调用这两条线:
Sheet1.shapes("Rectangle 3").PickUp Sheet1.shapes("Rectangle 5").Apply
因此,“矩形 3”中的图片将应用于“矩形 5”。但是,在保持尺寸不变的情况下,也可以更改其他一些属性。