Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I've been using this code and it has been working great:
'Sub Mail_ActiveSheet_Body() Dim OutApp As Outlook.Application Dim OutMail As Outlook.MailItem Application.ScreenUpdating = False Set OutApp = CreateObject("Outlook.Application") Set OutMail = OutApp.CreateItem(olMailItem) With OutMail .To = "abc.com" .CC = "efg.com" .BCC = "" .Subject = Sheets("trading").Range("A9").Value .HTMLBody = SheetToHTML(ActiveSheet) .Send 'or use .Display Now when I run the macro, I get an Outlook message that " A program is trying to automatically send e-mail on your behalf. Do you want to allow this ? The window gives me choices Yes, No, Help. If I say yes. the email goes out. If I say no, the vba gets stuck on the last line of the code above. Is there any way to stop this outlook message - speed is very important in my application and this Outlook message really slows things down. Thank you in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sending email from excel not working | Excel Discussion (Misc queries) | |||
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER | New Users to Excel | |||
Problem opening excel files from email | Excel Discussion (Misc queries) | |||
problem with downloading Data into Excel 2003 | Excel Discussion (Misc queries) | |||
Excel Send To function problem | Excel Discussion (Misc queries) |