Send ranges from excel to outlook

CepheiMD

New Member
Joined
Apr 1, 2016
Messages
10
Please help with the following.

I have an excel file with employees information and I need to send it to all the employees (each employee should receive his information).

There a more than 500 employees so send to each person with copy-paste its unreal.

For example, first email will be sent with range A1:C3 to the person from A2 (by viewing the mini sheet attached you can understand better my task)

salary ex.xlsx
ABCDEFGHIJKL
1InfoExample (message 1)
2John Johnson, ID 100to:John.Johnson@yahoo.com
3Salary 5 USDSubjectSalary info for last year
4BodyHello, please see your salary info from last year
5Info
6Mr. Bob Moore, id 200Info
7Salary3 USDMr. John Johnson
8Salary 5 USD
9Info
10Mr. Jack Grealish, id
11Salary4 USDExample (message 2)
12to:Bob.Moore@yahoo.com
13***SubjectSalary info for last year
14BodyHello, please see your salary info from last year
15
16Info
17Mr. Bob Moore, id 200
18Salary3 USD
19
20
21***
22
23General
24SubjectSalary info for last year
25BodyHello, please see your salary info from last year
26
Sheet1
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Your data is not structured at all. Format as table, all data for 1 person in 1 row. Then it can be realised with a simple loop.
 
Upvote 0
Your data is not structured at all. Format as table, all data for 1 person in 1 row. Then it can be realised with a simple loop.
The all data is exported from other software which does not allow to format it. I tried to re-create the real situation. If to format as table, all data for 1 person in a row I will have to do it for all 500 persons separately.
 
Upvote 0
Yes, but if it comes from other software, there should be a way to export per row, like a table. Get to the source of the problem. Ask if “they” can provide the exports properly.
 
Upvote 0
The all data is exported from other software which does not allow to format it. I tried to re-create the real situation. If to format as table, all data for 1 person in a row I will have to do it for all 500 persons separately.
I also can export info as mxl, html, ods, txt
 
Upvote 0
Yes, but if it comes from other software, there should be a way to export per row, like a table. Get to the source of the problem. Ask if “they” can provide the exports properly.
you mean that data should be structured as following?

salary ex.xlsx
ABCD
29infoJohn Johnson, ID 100Salary 5 USD
30InfoMr. Bob Moore, id 200Salary3 USD
31InfoMr. Jack Grealish, idSalary4 USD
Sheet1
 
Upvote 0
Yes! With even more columns, including email addresses, bodytexts and subjects etc..
 
Upvote 0
Yes! With even more columns, including email addresses, bodytexts and subjects etc..
Hello. I will be able to export data as table. In this case I will have to create a template and use data from table to populate the variable fields. Can you please help me with vba code?
 
Upvote 0
If you have some complete sample data I can provide you VBA code
 
Upvote 0
If you have some complete sample data I can provide you VBA code
Hello.

I made the template in Excel. Please help me with the code.


Copy of model info.xls
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
1TO:john.johnson@yahoo.com
2Subject:Salary information for 2021
3
4Body:Hello, see below the information about your salary for 2021
5
6
7Anexa nr.5 la
8Ordinul Ministerului Finanțelor nr. 135 din 06 noiembrie 2017
9
10Приложение № 5NameIDSalaryemailMonths worked
11к Приказу Министерствa финансов № 135 от 06 ноября 2017 г.John Johnson10015 USDjohn.johnson@yahoo.com3
12Fred Andrew21103 USDfred.andrew@yahoo.com4
13Jack Wilfred10054 USDjack.wilfred@yahoo.com9
14INFORMAŢIE***
15nr. din 31.12.2021G11counter from 1 to …
16privind salariul şi alte plăţi efectuate de către rezidentul parcului pentru tehnologia informaţiei in folosul angajatuluiG14=G11
17ИНФОРМАЦИЯ
18от 31.12.2021
19о заработной плате и о других выплатах, осуществленных резидентом информационно - теxнологического парка в пользу работника
20
21ÎCS "" SRL, cod fiscal
22Prin prezenta / Настоящим,
23(denumirea rezidentului parcului IT, codul fiscal)
24(наименование резидента информационно - технологического парка, фискальный код)
25Name (column AB), ID (column AC)
26confirmă că, / подтверждает что,
27(numele, prenumele şi codul fiscal al angajatului în folosul căruia au fost efectuate platile)
28(фамилия,имя и фискальный код работника, в пользу которого были произведены выплаты)
29
30pe parcursul anului 2 021 a beneficiat de urmatorul venit pentru activitatea desfasurata in parcul pentru tehnologia informatiei: / в течение года получил следующий доход за осуществленную деятельность в информационно - технологическогом парке:
31
32Suma venitului sub forma de salariu, plati de stimulare si compensare (lei)Nr. de luni in care angajatul a activat in parcul pentru tehnologia informatiei
33Сумма дохода, в виде заработной платы, поощрительных выплат и компенсации (в леях)№ месяцев, в котором работник работал информационно - технологическогом парке
3412
35Salary (column AD)Months worked (column AF)
36
37Notă/Примечания:
38La persoana care este obligata sa prezinte informatia respectiva este necesar sa ramina confirmarea precum ca aceasta a remis sau a inminat informatia persoanei in folosul careia au fost efectuate platile.
39
40У лица, обязанного предоставить информацию, должно остаться подтверждение о том, что данная информация отправлена или вручена лицу, в пользу которoго произведена выплата.
41
42
43
44Conducatorul Contabil-sef
45Руководитель(semnatura \ подпись)Главный бухгалтер(semnatura \ подпись)
46
47
48
49
50[Signature]
51
52
TDSheet
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,572
Members
453,054
Latest member
arz007

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top