This should be really simple for you pros but I have not been able to figure this one out.
All I need to do is to add code that will open an outlook session or use the current one.
Please dont change the code that i have already done. I know that theres probably a better way but what here works for me.
Thanks,
tW33k
All I need to do is to add code that will open an outlook session or use the current one.
Please dont change the code that i have already done. I know that theres probably a better way but what here works for me.
Thanks,
tW33k
Code:
Sub prep_everpt()
Dim ReturnValue As Integer
ReturnValue = MsgBox("Are you sure you want to compile the report?", vbQuestion + vbOKCancel, "Compile Report")
Select Case ReturnValue
Case vbOK
Case vbCancel
Exit Sub
End Select
Application.ScreenUpdating = False
Sheets("live_status").Copy
'convert to values
Application.DisplayAlerts = False
Range("A1:N64").Select
Selection.Copy
Range("A1:E1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.DisplayAlerts = True
'delete charts
ActiveSheet.ChartObjects("Chart 6").Activate
ActiveChart.ChartArea.Select
ActiveWindow.Visible = False
Selection.Delete
ActiveSheet.ChartObjects("Chart 7").Activate
ActiveChart.ChartArea.Select
ActiveWindow.Visible = False
Selection.Delete
ActiveSheet.ChartObjects("Chart 11").Activate
ActiveChart.ChartArea.Select
ActiveWindow.Visible = False
Selection.Delete
'delete buttons
ActiveSheet.Shapes("Button 8").Select
Selection.Delete
ActiveSheet.Shapes("Button 12").Select
Selection.Delete
ActiveSheet.Shapes("Button 13").Select
Selection.Delete
ActiveSheet.Shapes("Button 39").Select
Selection.Delete
Application.ScreenUpdating = True
Call break_links
Range("A1").Select
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs ("Q:\live_updates\cs_email\UBER_Live_Report_" & Format(Date, "mm.dd.yy") & ".xls")
Application.DisplayAlerts = True
Application.Dialogs(xlDialogSendMail).Show arg1:="Test Dist List", arg2:="Evening Status Report"
ActiveWorkbook.Close
End Sub