Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 将过滤范围复制到jpeg_Excel_Vba - Fatal编程技术网

Excel 将过滤范围复制到jpeg

Excel 将过滤范围复制到jpeg,excel,vba,Excel,Vba,我试图找到一种好方法,将vba代码转换为固定范围 'Create JPG file of the range 'Only enter the Sheet name and the range address MakeJPG = CopyRangeToJPG("Rapport", "A1:H108") 到过滤范围 'Only the visible cells in the selection Dim lr As Long lr = Sheets(&quo

我试图找到一种好方法,将vba代码转换为固定范围

'Create JPG file of the range
'Only enter the Sheet name and the range address
MakeJPG = CopyRangeToJPG("Rapport", "A1:H108")
到过滤范围

'Only the visible cells in the selection
Dim lr As Long
lr = Sheets("Registre").Cells(Application.Rows.Count, 1).End(xlUp).Row
Set Rng = Sheets("Rapport").Range("A1:H" & lr).SpecialCells(xlCellTypeVisible)
任何帮助


谢谢

将过滤后的数据复制/粘贴到新工作表或现有工作表上的空白区域,然后将其变为固定范围。将该固定范围传递给
CopyRangeToJPG
code。