Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I need to add code to this below, basically, if a certain cell value = 00M then send to one email address and if a certain cell value = 00C send to a different email address. An ideas? Many thanks Sub Email_Memo() Range("B2:M34").Select Selection.Copy Workbooks.Add ActiveSheet.Paste Range("A1").Select ActiveWindow.DisplayGridlines = False ActiveWindow.Zoom = 75 With ActiveSheet.PageSetup .PrintTitleRows = "" .PrintTitleColumns = "" End With ActiveSheet.PageSetup.PrintArea = "" With ActiveWindow .DisplayHeadings = False .DisplayHorizontalScrollBar = False .DisplayVerticalScrollBar = False .DisplayWorkbookTabs = False End With With ActiveSheet.PageSetup .Zoom = False .FitToPagesWide = 1 .FitToPagesTall = 1 .PrintErrors = xlPrintErrorsDisplayed End With ActiveWorkbook.SendMail "), ("Memo From Sto ") & Sheets("Sheet1").Range("H4").Value MsgBox "Your details have been sent", vbInformation, "PAYROLL MEMOS" ActiveWindow.Close SaveChanges = True Range("A1").Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing From Address before sending mail | Excel Programming | |||
E-Mail attachment to same e-mail address in Outlook | Excel Discussion (Misc queries) | |||
E-mail to every e-mail address in an Excel column? | Excel Discussion (Misc queries) | |||
General mail failure when sending e-mail from Excel | Excel Discussion (Misc queries) |