lakshmi.acharya
New Member
- Joined
- Jun 16, 2011
- Messages
- 6
Hi,
I am trying to automate the distribution of an internal sales report to different individuals in the organization. I am using Excel 2003 and Lotus 6.5. I have no knowledge of VB/VBA but I'm sure that this can be automated through a macro and hence seeking the help of experts here.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
My workbook is named “Sales Data.xls” and is stored in the location D:\Sales Data. Sales Data.xls has 2 worksheets namely: ‘Master’ and ‘Recipients’
<o> </o>
Master worksheet has sales information (region, city, product, stock, sales quantity, cost, net sales price) for different cities in <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1:country-region w:st="on">India</st1:country-region> (Mumbai, <st1:City w:st="on">Delhi</st1:City>, <st1:City w:st="on"><st1lace w:st="on">Bangalore</st1lace></st1:City>, Chennai etc.). The City names are in Column B of this worksheet.
<o> </o>
I have used a code available on this forum to split the data in ‘Master’ into separate worksheets for each City and each worksheet is named after the City. So, once I run this macro, I have the following worksheets in my workbook:
Recipient, Master, Mumbai, Delhi, Bangalore, Chennai, etc.<o></o>
<o> </o>
‘Recipient’ has email IDs of individuals who are responsible for the sales in each of these cities and I need to be able to send them an email with data for just their city. Information in worksheet ‘recipient’ is stored as below:
<o> </o>
Column A Column B
Mumbai xyz@email.com<o></o>
<st1:City w:st="on"><st1lace w:st="on">Delhi</st1lace></st1:City> abc@email.com<o></o>
<st1:City w:st="on"><st1lace w:st="on">Bangalore</st1lace></st1:City> pqr@email.com<o></o>
Chennai mno@email.com<o></o>
<o> </o>
Now, I need a macro to automate the distribution of the respective worksheet as attachment to the defined recipient through Lotus Notes. However, the worksheet ‘Master’ and ‘Recipient’ should not be distributed to anyone.<o></o>
<o> </o>
If the content of the email can be automated as well, it will be helpful.<o></o>
Subject: Sales Report for <date> (today’s date)<o></o>
Email body: <o></o>
Please review the sales report for <date> (today’s date).<o></o>
<o> </o>
“Attachment” (worksheet name.xls) (eg: Mumbai.xls)<o></o>
<o> </o>
Regards,<o></o>
Lakshmi<o></o>
<o> </o>
I would tremendously appreciate any help that I can receive in accomplishing this task.<o></o>
<o> </o>
Thanks and regards,<o></o>
Lakshmi<o></o>
I am trying to automate the distribution of an internal sales report to different individuals in the organization. I am using Excel 2003 and Lotus 6.5. I have no knowledge of VB/VBA but I'm sure that this can be automated through a macro and hence seeking the help of experts here.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
My workbook is named “Sales Data.xls” and is stored in the location D:\Sales Data. Sales Data.xls has 2 worksheets namely: ‘Master’ and ‘Recipients’
<o> </o>
Master worksheet has sales information (region, city, product, stock, sales quantity, cost, net sales price) for different cities in <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1:country-region w:st="on">India</st1:country-region> (Mumbai, <st1:City w:st="on">Delhi</st1:City>, <st1:City w:st="on"><st1lace w:st="on">Bangalore</st1lace></st1:City>, Chennai etc.). The City names are in Column B of this worksheet.
<o> </o>
I have used a code available on this forum to split the data in ‘Master’ into separate worksheets for each City and each worksheet is named after the City. So, once I run this macro, I have the following worksheets in my workbook:
Recipient, Master, Mumbai, Delhi, Bangalore, Chennai, etc.<o></o>
<o> </o>
‘Recipient’ has email IDs of individuals who are responsible for the sales in each of these cities and I need to be able to send them an email with data for just their city. Information in worksheet ‘recipient’ is stored as below:
<o> </o>
Column A Column B
Mumbai xyz@email.com<o></o>
<st1:City w:st="on"><st1lace w:st="on">Delhi</st1lace></st1:City> abc@email.com<o></o>
<st1:City w:st="on"><st1lace w:st="on">Bangalore</st1lace></st1:City> pqr@email.com<o></o>
Chennai mno@email.com<o></o>
<o> </o>
Now, I need a macro to automate the distribution of the respective worksheet as attachment to the defined recipient through Lotus Notes. However, the worksheet ‘Master’ and ‘Recipient’ should not be distributed to anyone.<o></o>
<o> </o>
If the content of the email can be automated as well, it will be helpful.<o></o>
Subject: Sales Report for <date> (today’s date)<o></o>
Email body: <o></o>
Please review the sales report for <date> (today’s date).<o></o>
<o> </o>
“Attachment” (worksheet name.xls) (eg: Mumbai.xls)<o></o>
<o> </o>
Regards,<o></o>
Lakshmi<o></o>
<o> </o>
I would tremendously appreciate any help that I can receive in accomplishing this task.<o></o>
<o> </o>
Thanks and regards,<o></o>
Lakshmi<o></o>