Answers for "loop through rows vba"

VBA
1

VBA Loop through recordset

'The short version
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM Contacts")
If Not (rs.EOF And rs.BOF) Then
	Do Until rs.EOF = True
		rs.MoveNext
	Loop
End If
rs.Close
Set rs = Nothing
Posted by: Guest on March-02-2021
0

vba loop through table

' 
for i = 1 to Range("Table1").Rows.Count
   Range("Table1[Column]")(i)="PHEV"
next i
Posted by: Guest on September-28-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language