D
Dr. Schwartz
Excel 2003
From file test1.xls I want to run a macro that looks for data in a closed
file (source.xls). The data in source.xls is arranged like this:
ColA ColB
cp1 01
cp2 01
cp3 01
cp1 02
cp3 02
cp1 03
cp2 02
The lookup function I need asks the question: What is the next number (in
ColB) for cp1? The answer is 04.
cp2 = 03
cp3 = 03
I want to do the lookup without opening the file. Is this possible?
Do I need to open source.xls to add a new line of data? Or can it be done
"behind the scenes"?
Any help is appreciated!
The doctor
From file test1.xls I want to run a macro that looks for data in a closed
file (source.xls). The data in source.xls is arranged like this:
ColA ColB
cp1 01
cp2 01
cp3 01
cp1 02
cp3 02
cp1 03
cp2 02
The lookup function I need asks the question: What is the next number (in
ColB) for cp1? The answer is 04.
cp2 = 03
cp3 = 03
I want to do the lookup without opening the file. Is this possible?
Do I need to open source.xls to add a new line of data? Or can it be done
"behind the scenes"?
Any help is appreciated!
The doctor