我正在写一个带有一些循环的小型宏,效果很好,但现在试图清理并避免使用.Select和.Activate,但在这样做的时候,我遇到了“error1004” If Cells(i, 3) = trailernummer Then
' Here is where it fails - If I select</e
当我逐行遍历子程序时,它会工作,但当我单击run时,它会在输入框后停止,并为Newloc.Select提供“运行时错误‘1004: range类的激活方法失败”。Newloc As RangeSet Original = ActiveWorkbook
Set Newloc = Application.InputBox("Selectworkbook and cell where to copy the data", &qu
我正在为整个列进行Vlookup,并使自动填充工作,但在得到"449:参数不是可选“"1004,range类的自动填充方法失败”之后Destination:=Range("AJ2",Range(AJ2).End(XlDown))我也没能避免select语句,这几行令我苦恼。= Sheets("newoutput")
Set sht7 = Sh