R
Ralph A. Moeritz
Hi,
I have a spreadsheet like so:
Worksheet 1:
--------------------------------
MAGIC | CONTACT | EMAIL
17 | Foo | (e-mail address removed)
....
Worksheet 2:
--------------------------------
MAGIC | COMPANY | QTY | BLAH
12 | Bambi | 3 | foz
....
I want to lookup the `MAGIC' field of Worksheet 2 and copy
the `CONTACT' and `EMAIL' fields for the matching row
in Worksheet 1 to Worksheet 2. I've tried using the DGET
macro which seemed to be perfect for this sort of thing,
but the problem is that it requires the cell containing
the column name to be _above_ the value to match.
Any ideas on how to code this up as a VBA macro?
Regards,
Ralph
I have a spreadsheet like so:
Worksheet 1:
--------------------------------
MAGIC | CONTACT | EMAIL
17 | Foo | (e-mail address removed)
....
Worksheet 2:
--------------------------------
MAGIC | COMPANY | QTY | BLAH
12 | Bambi | 3 | foz
....
I want to lookup the `MAGIC' field of Worksheet 2 and copy
the `CONTACT' and `EMAIL' fields for the matching row
in Worksheet 1 to Worksheet 2. I've tried using the DGET
macro which seemed to be perfect for this sort of thing,
but the problem is that it requires the cell containing
the column name to be _above_ the value to match.
Any ideas on how to code this up as a VBA macro?
Regards,
Ralph