Ashutosh2809
New Member
- Joined
- Jun 26, 2019
- Messages
- 5
My Code is this. I want to check each of 32 Cells in Sheet2 one by one and start copying in sheet3 if they have any value.
Please help
Please help
Code:
Dim X As Integer
Dim Y As Integer
Y = 0
X = 32
Do While X > 1
If ActiveWorkbook.Sheets("Sheet2").Cell(3, X).Value <> "" Then
ActiveWorkbook.Sheets("Sheet3").Range(1, X).Value = ActiveWorkbook.Sheets("Sheet2").Range(1, X).Value
Y = Y + 1
End If
If Y = 6 Then
Exit Do
End If
X = X - 1
Loop
Last edited by a moderator: