Hi,
I am new to VBA, but have programmed a bit before. I am making an application in excell using macros. Is there a simple VBA command to select the next cell in a column?
But I advise AGAINST using the Select and Activate methods for referencing ranges. It slows the processing down, and in many cases it ASSUMES a starting cell or range at the beginning of a procedure, which is NOT a good practice.
Rather, reference cells and ranges explicitly, using, for instance, the Cells Property...
Code:
For lRow = 2 to ActiveSheet.Range(ActiveSheet.[A2], ActiveSheet.[A2].End(xlDown))
vValue = ActiveSheet.Cells(lRow, 2).value
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.