largeselection
Active Member
- Joined
- Aug 4, 2008
- Messages
- 358
Hey again,
I'm trying to write a macro. Basically I have a set of data that I download every week. It is always in the same format with an ID in the leftmost column.
Basically I want to just download the data and then run this macro and have it add the new data into a list.
So as an example the data download looks like this:
1abcde
2abdec
3foijwe
4oijiofj
5ijoijoi
where the ID is a number and the letters are other data in columns.
So I can copy that and put it into a file, but then next week I get this data:
3foiwef
4oijoijf
5oijoiji
6jfjwjjf
7iwiwiwi
I am wondering if there is a way I can put into a macro something that will have excel check the ID of the new data. If it's not in the existing list of IDs then add the entire row to the bottom of the list of my new chart.
So in this case since there are already IDs 3,4,5 it would only add the rows with 6 and 7 to my new list. So my new list would be the original list plus rows 6 and 7 from this week:
1abcde
2abdec
3foijwe
4oijiofj
5ijoijoi
6jfjwjjf
7iwiwiwi
That's the first step. So if there is a solution to this I may have other questions to follow.
Thanks for your help!
I'm trying to write a macro. Basically I have a set of data that I download every week. It is always in the same format with an ID in the leftmost column.
Basically I want to just download the data and then run this macro and have it add the new data into a list.
So as an example the data download looks like this:
1abcde
2abdec
3foijwe
4oijiofj
5ijoijoi
where the ID is a number and the letters are other data in columns.
So I can copy that and put it into a file, but then next week I get this data:
3foiwef
4oijoijf
5oijoiji
6jfjwjjf
7iwiwiwi
I am wondering if there is a way I can put into a macro something that will have excel check the ID of the new data. If it's not in the existing list of IDs then add the entire row to the bottom of the list of my new chart.
So in this case since there are already IDs 3,4,5 it would only add the rows with 6 and 7 to my new list. So my new list would be the original list plus rows 6 and 7 from this week:
1abcde
2abdec
3foijwe
4oijiofj
5ijoijoi
6jfjwjjf
7iwiwiwi
That's the first step. So if there is a solution to this I may have other questions to follow.
Thanks for your help!