cooliebush
New Member
- Joined
- Nov 15, 2005
- Messages
- 2
I am new to VBA. Know some but not much.
What i would like to know is the following:
i need to look for an unknown value in a row(columnA), compare it to the row below in the same column. If these cells are the same to copy all data from column C to L in same row to another workbook. i can do it with one row. The problem comes about when there is more than one row in column A that has the same value and i need to copy the data in column C to L that has the same value in column A to another workbook. i also need to loop so that it checks all rows. There are a variable number of rows each time and the values in column A are never the same each time.
I have most of my code, all i need is some code to compare the rows beneath each other then select multiple rows where values in colmun A are the same and for the macro to loop through all cells.
Hope it is not much to ask
What i would like to know is the following:
i need to look for an unknown value in a row(columnA), compare it to the row below in the same column. If these cells are the same to copy all data from column C to L in same row to another workbook. i can do it with one row. The problem comes about when there is more than one row in column A that has the same value and i need to copy the data in column C to L that has the same value in column A to another workbook. i also need to loop so that it checks all rows. There are a variable number of rows each time and the values in column A are never the same each time.
I have most of my code, all i need is some code to compare the rows beneath each other then select multiple rows where values in colmun A are the same and for the macro to loop through all cells.
Hope it is not much to ask