Marco Rodrigue
New Member
Members
Forum Posts: 1
Member Since:
June 17, 2021
June 17, 2021
Offline
Hi Guys,
I made this macro but is not working properly
I want if in cell (x,x) the number of characters is lower than 7 and cell (y,y) have the leather T
Then copy cell (z,z)...
This is the code I wrote:
Dim x As Integer
Dim nRows As Integer
nRows = Cells(Rows.Count, 1).End(xlUp).Row
For x = 6 To nRows
If Cells(x, 11) <> 0 And Cells(x, 10) <> 0 Then
If (Len(Cells(x, 11)) <= 7 And Cells(x, 10) = "T") Then
Else
Cells(x, 11).Copy
Cells(x, 24).Select
ActiveSheet.Paste
End If
End If
Next x
End Sub
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Charles Johnson
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1944
SunnyKow: 1432
Anders Sehlstedt: 956
Purfleet: 415
Hans Hallebeek: 377
Frans Visser: 351
David_Ng: 318
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Tiago Braga
Rehan Baig
Fred HORVATH
Silke Schmidt
Stuart Barr
Amelia Nolte
David Wier
T P Collins
Gerry Khoo
Jessica
Forum Stats:
Groups: 3
Forums: 25
Topics: 7149
Posts: 31372
Member Stats:
Guest Posters: 50
Members: 34653
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —