열 14에서 끝날 때까지 시작하는 열 K를 통해 루프를 시도합니다. 다음 코드를 작성했지만 Range ("K14 :") 행에서 작동하지 않습니다. Range ("K14"& Rows.Count)를 사용하여 시도했지만 그 중 하나도 도움이되지 않았다.전체 행을 복사하려면 VBA에서 열을 반복하십시오
Windows("Price VolatilityDM.xlsm").Activate
Sheets("Volatility Static Data").Activate
Dim x As Single
Dim Cell As Range
For Each Cell In Range("K14:")
If Cell.Value > 0.25 Then
Sheets("Volatility Static Data").Range("B:K").Copy
Windows("Tolerance ReportDM.xslm").Activate
Sheets("Sheet1").Range("K17:Q17").Paste
End If
Next Cell
'한 lastrow = 세포 (rows.count, 11) .END (xlup를) lastrow 어둡게 셀에만 범위 ("K에서 각 셀에 대한 14 : K "& lastrow)' – Diogo
OP에는'lastrow '이 없습니다 ... 아직 :) – Dave