sycodiz
New Member
- Joined
- Jun 15, 2008
- Messages
- 27
I am trying to write a code to send Outlook meeting invites based on what I have in a spread sheet. I am missing several key points in the code so decided to see if anyone out there can develop one that works better than the mess I created.
Below is the type of spread sheet I will be using.
The invites will need to go to those in columns B, H, I, and J
The invites must go through another calendar called "Audit Calendar"- not my default
All audits will need a 1 week reminder
There are 2 different time zones that will need to be coded for
I would like to add a body to the email, which will be the same for every email except I would like the header to say what the subject line is.
As you can see by the subject line, I would like to use the date and time from the excel sheet
the data will be a lot longer than the example I show below.
Any help would be greatly appreciated!
[TABLE="class: grid, width: 1525"]
<tbody>[TR]
[TD]
[/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Site
[/TD]
[TD]Email
[/TD]
[TD]Date
[/TD]
[TD]Tiime
[/TD]
[TD]Address
[/TD]
[TD]Time Zone
[/TD]
[TD]Area
[/TD]
[TD]Area Manager
[/TD]
[TD]Region Manager
[/TD]
[TD]Director
[/TD]
[TD]Subject
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD="align: right"]5
[/TD]
[TD]Site5@email.com
[/TD]
[TD="align: right"]8/2/2017
[/TD]
[TD]12:00
[/TD]
[TD]123 Happy St
[/TD]
[TD]CST
[/TD]
[TD="align: right"]100
[/TD]
[TD]areamanager1@email.com
[/TD]
[TD]regionm1@email.com
[/TD]
[TD]director1@email.com
[/TD]
[TD]You are scheduled for an audit on [C2] at [D2]
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD="align: right"]10
[/TD]
[TD]Site10@email.com
[/TD]
[TD="align: right"]8/3/2017
[/TD]
[TD]06:00
[/TD]
[TD]12 Lonely Ave
[/TD]
[TD]EST
[/TD]
[TD="align: right"]100
[/TD]
[TD]areamanager2@email.com
[/TD]
[TD]regionm2@email.com
[/TD]
[TD]director2@email.com
[/TD]
[TD]You are scheduled for an audit on [C3] at [D3]
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD="align: right"]12
[/TD]
[TD]Site12@email.com
[/TD]
[TD="align: right"]8/4/2017
[/TD]
[TD]06:00
[/TD]
[TD]3 Snippy Dr
[/TD]
[TD]CST
[/TD]
[TD="align: right"]100
[/TD]
[TD]areamanager3@email.com
[/TD]
[TD]regionm1@email.com
[/TD]
[TD]director1@email.com
[/TD]
[TD]You are scheduled for an audit on [C4] at [D4]
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD="align: right"]15
[/TD]
[TD]Site15@email.com
[/TD]
[TD="align: right"]8/5/2017
[/TD]
[TD]12:00
[/TD]
[TD]4 Old Farm
[/TD]
[TD]EST
[/TD]
[TD="align: right"]200
[/TD]
[TD]areamanager4@email.com
[/TD]
[TD]regionm1@email.com
[/TD]
[TD]director1@email.com
[/TD]
[TD]You are scheduled for an audit on [C5] at [D5]
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD="align: right"]18
[/TD]
[TD]Site18@email.com
[/TD]
[TD="align: right"]8/6/2017
[/TD]
[TD]06:00
[/TD]
[TD]5 Nowhere St
[/TD]
[TD]CST
[/TD]
[TD="align: right"]200
[/TD]
[TD]areamanager5@email.com
[/TD]
[TD]regionm2@email.com
[/TD]
[TD]director2@email.com
[/TD]
[TD]You are scheduled for an audit on [C6] at [D6]
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Below is the type of spread sheet I will be using.
The invites will need to go to those in columns B, H, I, and J
The invites must go through another calendar called "Audit Calendar"- not my default
All audits will need a 1 week reminder
There are 2 different time zones that will need to be coded for
I would like to add a body to the email, which will be the same for every email except I would like the header to say what the subject line is.
As you can see by the subject line, I would like to use the date and time from the excel sheet
the data will be a lot longer than the example I show below.
Any help would be greatly appreciated!
[TABLE="class: grid, width: 1525"]
<tbody>[TR]
[TD]
[/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Site
[/TD]
[TD]Email
[/TD]
[TD]Date
[/TD]
[TD]Tiime
[/TD]
[TD]Address
[/TD]
[TD]Time Zone
[/TD]
[TD]Area
[/TD]
[TD]Area Manager
[/TD]
[TD]Region Manager
[/TD]
[TD]Director
[/TD]
[TD]Subject
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD="align: right"]5
[/TD]
[TD]Site5@email.com
[/TD]
[TD="align: right"]8/2/2017
[/TD]
[TD]12:00
[/TD]
[TD]123 Happy St
[/TD]
[TD]CST
[/TD]
[TD="align: right"]100
[/TD]
[TD]areamanager1@email.com
[/TD]
[TD]regionm1@email.com
[/TD]
[TD]director1@email.com
[/TD]
[TD]You are scheduled for an audit on [C2] at [D2]
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD="align: right"]10
[/TD]
[TD]Site10@email.com
[/TD]
[TD="align: right"]8/3/2017
[/TD]
[TD]06:00
[/TD]
[TD]12 Lonely Ave
[/TD]
[TD]EST
[/TD]
[TD="align: right"]100
[/TD]
[TD]areamanager2@email.com
[/TD]
[TD]regionm2@email.com
[/TD]
[TD]director2@email.com
[/TD]
[TD]You are scheduled for an audit on [C3] at [D3]
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD="align: right"]12
[/TD]
[TD]Site12@email.com
[/TD]
[TD="align: right"]8/4/2017
[/TD]
[TD]06:00
[/TD]
[TD]3 Snippy Dr
[/TD]
[TD]CST
[/TD]
[TD="align: right"]100
[/TD]
[TD]areamanager3@email.com
[/TD]
[TD]regionm1@email.com
[/TD]
[TD]director1@email.com
[/TD]
[TD]You are scheduled for an audit on [C4] at [D4]
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD="align: right"]15
[/TD]
[TD]Site15@email.com
[/TD]
[TD="align: right"]8/5/2017
[/TD]
[TD]12:00
[/TD]
[TD]4 Old Farm
[/TD]
[TD]EST
[/TD]
[TD="align: right"]200
[/TD]
[TD]areamanager4@email.com
[/TD]
[TD]regionm1@email.com
[/TD]
[TD]director1@email.com
[/TD]
[TD]You are scheduled for an audit on [C5] at [D5]
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD="align: right"]18
[/TD]
[TD]Site18@email.com
[/TD]
[TD="align: right"]8/6/2017
[/TD]
[TD]06:00
[/TD]
[TD]5 Nowhere St
[/TD]
[TD]CST
[/TD]
[TD="align: right"]200
[/TD]
[TD]areamanager5@email.com
[/TD]
[TD]regionm2@email.com
[/TD]
[TD]director2@email.com
[/TD]
[TD]You are scheduled for an audit on [C6] at [D6]
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Last edited: