Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
heres the code i was using. Yesterday it worked perfectly. I have the email
in my inbox to prove it. Today when i use it i get this error. Run Time Error 1004 Application defined or object defined error. I haven't changed a thing in the file. Private Sub Send2_Click() Dim wb As Workbook Dim strdate As String strdate = Format(Now, "dd-mm-yy h-mm-ss") ActiveSheet.Copy Set wb = ActiveWorkbook With wb .Sheets(1).Name = .Sheets(1).Range("B4").Value .SaveAs .Sheets(1).Range("B4").Value _ & ".xls" ActiveWorkbook.SendMail "", _ "Inactive Employee Attendance Data" ActiveWorkbook.ChangeFileAccess xlReadOnly Kill ActiveWorkbook.FullName ActiveWorkbook.Close False End With End Sub Thanks for the help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File saved yesterday is blank today, how do I retrieve? | New Users to Excel | |||
when i save a file that i have worked on, excel7 closes down work. | Excel Discussion (Misc queries) | |||
Formula to work out hours worked | Excel Discussion (Misc queries) | |||
Formula doesn't work this morning, but worked for 2 years now | Excel Worksheet Functions | |||
countif(a1:a12,">TODAY()") How do I get this to work? | Excel Worksheet Functions |