Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Anybody know why the lookup line of this code does not function
properly? 'Enter order electronically with vendors Dim VendAddr As String VendAddr = Range("LOOKUP(INDEX(Orders!$F$1:$L$37,7,1),'Addres s Lookup Table'!A$1:A$50,'Address Lookup Table'!F$1:F$50)").Value Set OutApp = CreateObject("Outlook.Application") Set OutMail = OutApp.CreateItem(olMailItem) With OutMail .To = VendAddr .CC = "" .BCC = "" .Subject = "ORDER from HM: " & HMoffice & HMPO .Body = "Please enter the following order and utilize the attached packing list." & vbNewLine & _ "Please confirm receipt of order within 24 hours." '.Attachments.Add ActiveWorkbook.FullName 'You can add other files also like this '.Attachments.Add ("C:\test.txt") .Send 'or use .Display End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Macro how to create email link for the email addresses in aRange or Selection | Excel Worksheet Functions | |||
Can't get email addresses to be "hot" when using lookup | Excel Worksheet Functions | |||
can I copy a column of email addresses, paste into email address? | New Users to Excel | |||
Transfer Email addresses from spreadsheet to email address book | Excel Discussion (Misc queries) | |||
Using CONCATENATE function to create email addresses from a list | Excel Worksheet Functions |