dnicholsby
New Member
- Joined
- Jan 24, 2017
- Messages
- 26
Hello, I have the following code and I would expect it to only paste from B18 downwards but it is going higher.
Code:
Dim wsFor Each ws In Sheets(Array("Consumer Discretionary", "Consumer Staples", "Energy", "Banks", "Financials excl Banks", "Healthcare", "Industrials", "IT", "Materials", _
"Real Estate", "Telecoms", "Utilities"))
ws.Select
If range("A18") <> "" Then
With ws
.range("B18:AU18").Copy
.range("A18", range("A18").End(xlDown)).Offset(0, 1).Select
.range(Selection, Selection.End(xlUp)).Select
.Paste
End With
End If
Next ws