P
prkhan56
Hello All,
I am using Excel 2007.
I have an Excel Sheet as follows:
Col A has File Name. Col B is having email address.
Col A Col B
Greg John xxxx yyyy zzz (e-mail address removed)
Allan James bbbb cccc ddd (e-mail address removed)
abcd efgh ijkl mnop NA
….
…
...
As seen from the data Col A is having file names beginning with
the user name. Where there is no user name, the Cells in Col B have
NA. The list is long
I wish to have a macro match the names from the Email address in Col B
and search
in Col A and email that particular file as attachment to all names in
ColB ...NA will be ignored.
Eg. (in above case)
Greg John xxxx yyyy zzz will be sent to (e-mail address removed)
Allan James bbbb cccc ddd will be sent to (e-mail address removed)
abcd efgh ijkl mnop will not be emailed to anyone
The path of the files is: C:\Data\Reports
Hope to have some help
TIA
Rashid Khan
I am using Excel 2007.
I have an Excel Sheet as follows:
Col A has File Name. Col B is having email address.
Col A Col B
Greg John xxxx yyyy zzz (e-mail address removed)
Allan James bbbb cccc ddd (e-mail address removed)
abcd efgh ijkl mnop NA
….
…
...
As seen from the data Col A is having file names beginning with
the user name. Where there is no user name, the Cells in Col B have
NA. The list is long
I wish to have a macro match the names from the Email address in Col B
and search
in Col A and email that particular file as attachment to all names in
ColB ...NA will be ignored.
Eg. (in above case)
Greg John xxxx yyyy zzz will be sent to (e-mail address removed)
Allan James bbbb cccc ddd will be sent to (e-mail address removed)
abcd efgh ijkl mnop will not be emailed to anyone
The path of the files is: C:\Data\Reports
Hope to have some help
TIA
Rashid Khan