110,552
社区成员
发帖
与我相关
我的任务
分享
shape = xlSheet.Shapes.AddOLEObject(ClassType='Paint.Picture',Filename="D:\union.jpeg", Link=False) #插图片附件
shape.Left = xlSheet.Cells(2,2).Left #把定位附件到指定单元格 单位:磅
shape.Top = xlSheet.Cells(2,2).Top
xlSheet.Rows(2).RowHeight = shape.Height #行高
xlSheet.Columns(2).ColumnWidth = shape.Width #列宽