azizrasul
Well-known Member
- Joined
- Jul 7, 2003
- Messages
- 1,304
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
I get told on this forum, and quite rightly so, that I should avoid a liberal use of Select, which is what the macro recorder tends to produce. However when I try
it doesn't work, but when I try
it does?
Code:
With Sheets("DETAILED - KPI 5")
With .Range("C130:C" & Sheets("Sheet2").UsedRange.Rows.Count - 3 + 130)
.Cut
End With
With .Range("I130")
.Paste 'Object doesn't support this property or method.
End With
End With
it doesn't work, but when I try
Code:
With Sheets("DETAILED - KPI 5")
With .Range("C130:C" & Sheets("Sheet2").UsedRange.Rows.Count - 3 + 130)
.Cut
End With
End With
Sheets("DETAILED - KPI 5").Select
Sheets("DETAILED - KPI 5").Range("I130").Select
Sheets("DETAILED - KPI 5").Paste
it does?