excel插入图片自动适应表格大小
2017-07-27 13:28
573 查看
1
ALT + F11
2
菜单 插入-----模块
3
键入
Sub PictureFitUnit()
Dim sh As Shape
For Each sh In ActiveSheet.Shapes
sh.LockAspectRatio = False
sh.Left = sh.TopLeftCell.Left
sh.Top = sh.TopLeftCell.Top
sh.Width = sh.TopLeftCell.Width
sh.Height = sh.TopLeftCell.Height
Next sh
End Sub
4
光标在模块中,F5执行
ALT + F11
2
菜单 插入-----模块
3
键入
Sub PictureFitUnit()
Dim sh As Shape
For Each sh In ActiveSheet.Shapes
sh.LockAspectRatio = False
sh.Left = sh.TopLeftCell.Left
sh.Top = sh.TopLeftCell.Top
sh.Width = sh.TopLeftCell.Width
sh.Height = sh.TopLeftCell.Height
Next sh
End Sub
4
光标在模块中,F5执行
相关文章推荐
- 百度UEditor插入图片尺寸自动适应编辑框大小问题
- Excel VBA 插入指定图片到单元格并只适应大小
- 百度UEditor插入图片尺寸自动适应编辑框大小
- 使图片自动适应image控件的大小
- 让图片自动适应框的大小
- 弹出自适应图片大小的窗口弹出窗口根据图片大小,自动判断高和宽
- 基于jQuery的图片大小自动适应实现代码
- 图片自动适应大小
- 弹出自适应图片大小的窗口弹出窗口根据图片大小,自动判断高和宽。
- 图片自动适应大小
- 网页背景图片自动适应窗口大小的代码
- ViewPager实现自动滑动和下面小圆点可根据图片大小来自适应
- iPhone处理图片(UIImage扩展类) 自动适应frame大小方法
- Qt学习笔记之图片显示(自动调整大小适应设计的范围)
- 网页背景图片自动适应窗口大小的代码
- 用c#在excel中插入图片和设置表格宽度
- 设置winform窗体背景图片自动适应窗体大小
- CSS图片自动适应大小
- excel自动插入目录下的图片
- EXCEL如何设置,使表格能自动调整列宽以适应文字长度