Date from Excel into Outlook

Syed Iqbal

New Member
Joined
Sep 15, 2002
Messages
5
Hi, I am new here.
I have a incoming time sheet in Excel with data of each month in rows.
I have created a macro which can send emails to all the intended users.
The problem is that I am not managing to copy the selected row (text) as a body text of outlook message.
Any suggestion are welcomed.
 
On 2002-09-16 05:33, dk wrote:
Hi,

Look at the link that XL-Denis posted. It shows you how to send an email through Outlook with the body of the message being a specified range.

If you have any problems adapting the code then post back and either me or someone else should be able to help.

Hi Dan , Thanks a lot
I tried the range example and at line :
ActiveWorkbook.PublishObjects.Add(xlSourceRange, "C:\report.htm", rngeSend.Parent.Name, rngeSend.Address, xlHtmlStatic).Publish True

I am getting an error message which says:-
Run time error '1004': Application defined or object defined error

I have tried to see the specific help about this error without luck or you can say not finding the solution.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hello,

First of all, there should only be one back slash character (this board doubles up back slashes). However, the code should still work. Secondly, which version of Excel are you using? This code works in Excel 2000 but I haven't tested it in Excel 97.

Thirdly, post your code as it is so someone else can try it.
 
Upvote 0

Forum statistics

Threads
1,215,617
Messages
6,125,867
Members
449,266
Latest member
davinroach

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