Hi all,
I'd like to do the following via a Macro, but am unsure of how/what the code should look like. I have a list of accounts with their related account numbers in Sheet 1, and a list of transactions in Sheet 2 with other details such as date, reference, etc.
What I'd like the Macro to do is to loop through the list of account numbers from Sheet 1, filter and extract the relevant columns from Sheet 2, and copy / paste those columns in Sheet 3. Ideally this would be a loop with the account details being pasted one below the other in sequence in Sheet 3.
I've been able to write simple VBA code to do this for one account number, and doesn't work with the second onwards. I apologise if this is not clear enough as I'm just starting out at VBA coding. Would be grateful for any and all help!
I'd like to do the following via a Macro, but am unsure of how/what the code should look like. I have a list of accounts with their related account numbers in Sheet 1, and a list of transactions in Sheet 2 with other details such as date, reference, etc.
What I'd like the Macro to do is to loop through the list of account numbers from Sheet 1, filter and extract the relevant columns from Sheet 2, and copy / paste those columns in Sheet 3. Ideally this would be a loop with the account details being pasted one below the other in sequence in Sheet 3.
I've been able to write simple VBA code to do this for one account number, and doesn't work with the second onwards. I apologise if this is not clear enough as I'm just starting out at VBA coding. Would be grateful for any and all help!