fari1
Active Member
- Joined
- May 29, 2011
- Messages
- 362
Code:
Sub loopA()
Dim cel As Range
Dim mySheet As Worksheet
Set mySheet = Sheets("wquery")
For Each cel In Sheets("data").Range("A" & Sheets("data").Range("A1").End(xlDown).Row & ":A" & Sheets("data").Range("A" & Rows.Count).End(xlUp).Row)
mySheet.Range("A1") = cel.Value
Next cel
End Sub
i want to amend the code to not consider those cells in the loop which are visibly blank, by formula