找到一个值,然后使用偏移量复制一张图片

问题描述

我正在尝试使用偏移量复制图片,但在粘贴时没有获得任何数据。

  • f.Offset(11,-8) 被合并。
  • 我在 vba 上使用 f.Offset(11,-8).select 进行了测试,然后右键单击复制,然后粘贴到另一张纸上。我正在获取图像,但尺寸不正确。

这是我的代码

Sub Button1_Click()
Application.copyObjectsWithCells = True
Set f = ThisWorkbook.Worksheets(1).Cells.Find(What:="C:",LookAt:=xlWhole)
        If Not f Is nothing Then ' its found
                        f.Offset(11,-8).copy
                        ThisWorkbook.Worksheets("Sheet2").Range("G10").PasteSpecial
        End If
End Sub

解决方法

请测试下一个代码:

$(document).ready(function(){   
$("ul li").prepend("<i class='fa fa-check-square-o' style='margin-right:10px;'></i>");
$(".tab-content ").prepend("<i class='fa fa-check-square-o' style='margin- 
right:10px;'></i>");});