davedel
03-27-2003, 03:14 PM
I have exported all records of a Contact Management program into Excel. So now all fields have data that is "blah blah" for sake of argument, except for two which are right next to each other: Company and Contact (i.e., first name and last name). One file contains all contacts, whereas the second file is a subset of the main file.
I have assigned individual ID's to each record of the main file, and all I want to do now is in the second file, grab those ID's and tag each in the second file accordingly (i.e., if in the main file the ID is 100, want to write the macro so that it finds the same Company/Contact in the second file and tags it also with 100).
This is easy if there weren't many records, but there are several hundred in the second file alone! Also I've been playing with ActiveCell properties and the Cells properties, but since VB for Excel isn't exactly like regular VB, I trip over Excel's rules. In database terms, I've been treating Company/Contact as the primary key so-to-say in order to do a search.
Unless there's a better way!!! Maybe SQL server has its own way of manipulating tables? Just need some suggestions
I have assigned individual ID's to each record of the main file, and all I want to do now is in the second file, grab those ID's and tag each in the second file accordingly (i.e., if in the main file the ID is 100, want to write the macro so that it finds the same Company/Contact in the second file and tags it also with 100).
This is easy if there weren't many records, but there are several hundred in the second file alone! Also I've been playing with ActiveCell properties and the Cells properties, but since VB for Excel isn't exactly like regular VB, I trip over Excel's rules. In database terms, I've been treating Company/Contact as the primary key so-to-say in order to do a search.
Unless there's a better way!!! Maybe SQL server has its own way of manipulating tables? Just need some suggestions