Excel宏 - 拍摄特定范围的快照 [英] Excel Macro - Take a snapshot of Particular Range
本文介绍了Excel宏 - 拍摄特定范围的快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在特定表格中的范围内有一些数据。我需要一张
的快照,并在顶部的所有其他表格中显示为图像。
我知道我可以简单地复制&粘贴范围,但是这种标题在表格上隐藏列时会产生一些问题。
任何解决方案/技巧相同?
解决方案
Range具有.CopyPicture方法。
或使用相机工具:
Sub Tester()
Sheet1.Range(D5:E16)。复制
Sheet2.Activate
Sheet2.Range(A1)。选择
ActiveSheet.Pictures.Paste链接:= True
Application.CutCopyMode = False
End Sub
I have come around a very strange requirement in my Excel Dashboard.
I have a some data in a Range in a particular sheet. I need to take a snapshot of it and display it as an Image in all other sheets at top.
I know I can simply copy & paste the range but that kind of Header is creating some issues while hiding columns on the sheets.
Any solution/trick for that same?
解决方案
Range has a .CopyPicture method.
Or use the Camera tool:
Sub Tester()
Sheet1.Range("D5:E16").Copy
Sheet2.Activate
Sheet2.Range("A1").Select
ActiveSheet.Pictures.Paste Link:=True
Application.CutCopyMode = False
End Sub
这篇关于Excel宏 - 拍摄特定范围的快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文