lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I wanted to do the code below without using for-loop, but it did not work. Is it possible to do it without For loop?
Thank you so much.
I wanted to do the code below without using for-loop, but it did not work. Is it possible to do it without For loop?
Thank you so much.
Code:
Sub myleft()
'For x = 1 To 10
'Cells(x, 2) = Left(Cells(x, 1), 2)
'Next x
'''''''
Range("b1:b10") = Left(Range("a1:a10"), 2)
End Sub
Last edited: