UnsolvedCoding
Technical User
I have code that has to place notes in sequence from left to right. Column L holds the list of numbers to be pulled from the systme. Previously it was written as
i = 2
Do
' Get the number
sNumber = Range("L" & i).Select
' SQL Code goes here
' Used as a rolling variable with the activecell offset command
' to go to the right and enter existing notes
k = 3
While Not rsERDB.EOF
' Put the note into the correct cell
ActiveCell.Offset(0, k).Value = New_Note
' Move the offset to the right by one cell
k = k + 1
' Go to the next record in SQL
rsERDB.MoveNext
Wend
Loop
I don't know how but would like to offest to the right without using the select.
Anyone know how to do that?
i = 2
Do
' Get the number
sNumber = Range("L" & i).Select
' SQL Code goes here
' Used as a rolling variable with the activecell offset command
' to go to the right and enter existing notes
k = 3
While Not rsERDB.EOF
' Put the note into the correct cell
ActiveCell.Offset(0, k).Value = New_Note
' Move the offset to the right by one cell
k = k + 1
' Go to the next record in SQL
rsERDB.MoveNext
Wend
Loop
I don't know how but would like to offest to the right without using the select.
Anyone know how to do that?