Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No luck answering this one myself.
I'd like to send the active worksheet plus a copy of another worksheet in my workbook. here is my code I tried but Iget subscript out of range Private Sub Send1_Click() Dim strDate As String ActiveSheet.Copy Worksheets("Main").Copy strDate = Format(Date, "dd-mm-yy") & " " & Format (Time, "h-mm-ss") ActiveWorkbook.SaveAs "NewEmployeeData.xls" ActiveWorkbook.SendMail "", _ "Employee Attendance Data" ActiveWorkbook.ChangeFileAccess xlReadOnly Kill ActiveWorkbook.FullName ActiveWorkbook.Close False End Sub Thanx |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy Value of Active cell and 25 rows above to a diff worksheet | Excel Discussion (Misc queries) | |||
Macro to copy active worksheet to new workbook | Excel Discussion (Misc queries) | |||
copy active cell value,find the pasted value in different worksheet | Excel Worksheet Functions | |||
Copy worksheet from Active workbook into all other open workbooks | Excel Programming | |||
macro to apply worksheet event to active worksheet | Excel Programming |