Bassam Omar
New Member
Hi,
I appreciate your efforts helping people.
I'm not experienced in dealing with macros and Excel vba codes, but i'm in
great need of a code doing the following:
I've an excel sheet similar to:
A B C D E F
1 NAME1 NAME2
2 DATE STATUS PROPERTY1 PROPERTY2 STATUS........................
3 1-1-013
4 2-1-013
5
.
.
.
31-12-013
and a database of files in c:\\users\username\desktop\2013
Named as follows
SGP-1-JAN-013
SGP-2-JAN-013
.
.
SGP-1-FEB-013
.
.
SGP-1-MAR-013
AND each workbook is something like this:
A B C D
1 NAME STATUS PROPERTY1 PROPERTY2
2
3
4
The problem is, as you can see, i need a code taking into account :
1- the variables in the referred workbook name ( day, month)
2- searching the reference worksheet for a matched name and property for
each cell and get the result copied. ex: the required code if run for
cell C3 the program should open the correct workbook considering the date
in A3 and matching the name ''NAME1'' and the word "status" to find
the similar cell and copy its value to C3 in the active worksheet, and so
on.
I know its very complicated, but i'm sure you can help me with that.
I hope i explained it well.
Thanks for your time.
Bassam Omar
I appreciate your efforts helping people.
I'm not experienced in dealing with macros and Excel vba codes, but i'm in
great need of a code doing the following:
I've an excel sheet similar to:
A B C D E F
1 NAME1 NAME2
2 DATE STATUS PROPERTY1 PROPERTY2 STATUS........................
3 1-1-013
4 2-1-013
5
.
.
.
31-12-013
and a database of files in c:\\users\username\desktop\2013
Named as follows
SGP-1-JAN-013
SGP-2-JAN-013
.
.
SGP-1-FEB-013
.
.
SGP-1-MAR-013
AND each workbook is something like this:
A B C D
1 NAME STATUS PROPERTY1 PROPERTY2
2
3
4
The problem is, as you can see, i need a code taking into account :
1- the variables in the referred workbook name ( day, month)
2- searching the reference worksheet for a matched name and property for
each cell and get the result copied. ex: the required code if run for
cell C3 the program should open the correct workbook considering the date
in A3 and matching the name ''NAME1'' and the word "status" to find
the similar cell and copy its value to C3 in the active worksheet, and so
on.
I know its very complicated, but i'm sure you can help me with that.
I hope i explained it well.
Thanks for your time.
Bassam Omar