In column A, I have strategically placed the value of x in specific rows.
I use a macro that goes to column A and then executes selection.end(xldown).Select a certain number of times depending on which row I want it to land on.
For example if I want it to select the third row with an x I use:
Range("A1").Select
selection.end(xldown).Select
selection.end(xldown).Select
selection.end(xldown).Select
I would prefer to be able to tell it to go down a specific # of times based on the value in a cell on another sheet.
Additionally, I need it to look up this value, instead of pointing to a specific cell reference.
For example, Id want to index match the value based on an account number, the account number its looking up can be hardcoded inside the macro itself.
Sheet2 has account numbers in column A and the value I am seeking in column B.
I use a macro that goes to column A and then executes selection.end(xldown).Select a certain number of times depending on which row I want it to land on.
For example if I want it to select the third row with an x I use:
Range("A1").Select
selection.end(xldown).Select
selection.end(xldown).Select
selection.end(xldown).Select
I would prefer to be able to tell it to go down a specific # of times based on the value in a cell on another sheet.
Additionally, I need it to look up this value, instead of pointing to a specific cell reference.
For example, Id want to index match the value based on an account number, the account number its looking up can be hardcoded inside the macro itself.
Sheet2 has account numbers in column A and the value I am seeking in column B.
Last edited: