• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help me understand this if statement

If (rs.RecordCount > 0) Then
cnt = 1
For Each fld In rs.Fields
wks.Cells(1, cnt).Value = fld.Name
cnt = cnt + 1
Next fld
Call rng.CopyFromRecordset(rs, 4000, 26)
End If
 
If there are greater than 0 records in the file rs
then it copies the records into a range
Not sure what the Call line does
 
Back
Top