EXCEL中图片处理
2008-09-22 17:26
78 查看
Sub SetPicture()
'缩小Image的尺寸 Sheets(1).Shapes.SelectAll Selection.ShapeRange.PictureFormat.Contrast = 0.5 Selection.ShapeRange.PictureFormat.Brightness = 0.5 Selection.ShapeRange.PictureFormat.ColorType = msoPictureAutomatic Selection.ShapeRange.PictureFormat.TransparentBackground = msoFalse Selection.ShapeRange.Fill.Visible = msoFalse Selection.ShapeRange.Line.Visible = msoFalse Selection.ShapeRange.Rotation = 0# Selection.ShapeRange.PictureFormat.CropLeft = 0# Selection.ShapeRange.PictureFormat.CropRight = 0# Selection.ShapeRange.PictureFormat.CropTop = 0# Selection.ShapeRange.PictureFormat.CropBottom = 0# Selection.ShapeRange.ScaleHeight 1#, msoTrue, msoScaleFromTopLeft Selection.ShapeRange.ScaleWidth 1#, msoTrue, msoScaleFromTopLeft Selection.ShapeRange.IncrementTop -13.5 Dim LastRow As Long Dim r As Long Dim num As Long Dim Name As String LastRow = ActiveSheet.UsedRange.Rows.Count LastRow = LastRow + ActiveSheet.UsedRange.Row - 1 Application.ScreenUpdating = False For r = LastRow To 1 Step -1
If (Cells(r, 2) = "明 细 帐") Then Rows(r).RowHeight = 35
Next r End Sub
'缩小Image的尺寸 Sheets(1).Shapes.SelectAll Selection.ShapeRange.PictureFormat.Contrast = 0.5 Selection.ShapeRange.PictureFormat.Brightness = 0.5 Selection.ShapeRange.PictureFormat.ColorType = msoPictureAutomatic Selection.ShapeRange.PictureFormat.TransparentBackground = msoFalse Selection.ShapeRange.Fill.Visible = msoFalse Selection.ShapeRange.Line.Visible = msoFalse Selection.ShapeRange.Rotation = 0# Selection.ShapeRange.PictureFormat.CropLeft = 0# Selection.ShapeRange.PictureFormat.CropRight = 0# Selection.ShapeRange.PictureFormat.CropTop = 0# Selection.ShapeRange.PictureFormat.CropBottom = 0# Selection.ShapeRange.ScaleHeight 1#, msoTrue, msoScaleFromTopLeft Selection.ShapeRange.ScaleWidth 1#, msoTrue, msoScaleFromTopLeft Selection.ShapeRange.IncrementTop -13.5 Dim LastRow As Long Dim r As Long Dim num As Long Dim Name As String LastRow = ActiveSheet.UsedRange.Rows.Count LastRow = LastRow + ActiveSheet.UsedRange.Row - 1 Application.ScreenUpdating = False For r = LastRow To 1 Step -1
If (Cells(r, 2) = "明 细 帐") Then Rows(r).RowHeight = 35
Next r End Sub
相关文章推荐
- java处理excel中图片(png,jpeg,jpg)
- excel大文件 、图片检测与处理、七牛云平台加速、web安全、curl模拟登陆、web开发拍照应用、移动云平台、html5 动画、bootstarp前端框架、高并发下的程序设计 、SAE公开课
- 关于Gridview中使用控件和图片导出到Excel的处理
- VBS 将Txt 转成Excel,并加图片列头的处理...
- c# Aspose 图片处理(将Excel单元格中的图片拷贝到另一个Excel文件中)
- PHPExcel处理导入导出图片,链接
- POI java 处理excel上传图片
- VBS 将Txt 转成Excel,并加图片列头的处理...
- 关于POI对Excel2007中图片的处理,获取图片在excel中对应的位置
- 关于Gridview中使用控件和图片导出到Excel的处理
- C#和NPOI处理中的EXCEL中的图片
- 关于Gridview中使用控件和图片导出到Excel的处理
- Python处理CSV,Excel,PDF和图片
- jquery 图片处理
- 深度学习处理超大像素的图片训练集的流程以及记录和问题
- 简单处理加密图片 (改变图片首地址)
- java使用poi解析或处理excel的时候,如何防止数字变成科学计数法的形式
- Java-图片处理 Gif转Jpg
- CANVAS实现图片模糊(处理库StackBlur.js)
- 将word、excel、ppt、html、txt,pdf转换成图片源代码