DougTucker
Technical User
I'm manipulating a data extract that defines each new customer record in a header row, but doesn't attach the customer name to each record. I need to create a key lookup table by populating a "customer name" value for every row in the customer record until another customer name (header) appears.
This sounds similar to that posted by MCuthill (posting
I can accomplish this really easily in MS Excel by comparing the current rows to the prior row. If the customer name is null, pull from the prior row. Eventually the prior row will be the header row (see attached .xls).
I want to have a VBA procedure that I can call to manipulate a file that starts with this:
************
RecID Company
1 Acme
2
3
4
5 Jones
6
7
8
9 Smith
10
11
************
The resulting data should look like this:
RecID Company
1 Acme
2 Acme
3 Acme
4 Acme
5 Jones
6 Jones
7 Jones
8 Jones
9 Smith
10 Smith
11 Smith
Your help is greatly appreciated!
~ Doug T.
This sounds similar to that posted by MCuthill (posting
I can accomplish this really easily in MS Excel by comparing the current rows to the prior row. If the customer name is null, pull from the prior row. Eventually the prior row will be the header row (see attached .xls).
I want to have a VBA procedure that I can call to manipulate a file that starts with this:
************
RecID Company
1 Acme
2
3
4
5 Jones
6
7
8
9 Smith
10
11
************
The resulting data should look like this:
RecID Company
1 Acme
2 Acme
3 Acme
4 Acme
5 Jones
6 Jones
7 Jones
8 Jones
9 Smith
10 Smith
11 Smith
Your help is greatly appreciated!
~ Doug T.