excel - 带有图像的 VBA 价格表:TopLeftCell 给出了错误的地址
问题描述
大家 好,我正在创建内衣店。我在 excel 文件中有价目表,并试图获取如下图像:
我正在使用找到Excel VBA 的解决方案:如何检查单元格内的图片名称? 我稍微修改了代码:
Sub CheckImageName()
Dim pic As Excel.Picture
For Each pic In ActiveSheet.Pictures
'pic.Top = pic.Top + 20
'pic.Left = pic.Left + 20
pic.TopLeftCell.Value = pic.Name
Next pic
end sub
同时我已经打开 XLSX 作为 ZIP 端从工作表中获取所有图像。
问题是,单元格中的图像名称与图像内容不对应。在选定的情况下 image279.jpg 是:
我做错了什么?
解决方案
推荐阅读
- apache-spark - 仅覆盖分区 spark 数据集中的一些分区
- php - 挂钩注册表prestashop 1.7
- html - 使图像适合响应大小的 td 的高度
- actions-on-google - 在 V2 Dialogflow 中使用 express 获取正文请求参数
- c# - 核心 2.1 signalR 成功连接但客户端为空
- python - Alien 类没有 rect 属性
- python - DataFrame 存储 n 维列表
- r - R:根据不同长度的向量对df行进行排序
- java - Springboot @Scheduled 暂停
- c# - WebForms Repeater,设置文本框属性作为保存时的标识符