u can atleast help me in this.



While mailing a sheet i want to copy that sheet contents to a temporary created workbook with same name as of selected workbook. and store this temp workbook in the folder which i have created.The problem is how will i store the copy of selected workbook to that folder which i have created.





In the following code:



1)list.text --- is name of the sheet.

2)activeworkbook.name--- i tested with f8 dosn't gives name

3)activesheet.copy-- tested with f8 dont give anything

4).Attachments.Add Wb.FullName--givin path of the sheet selected.

5) Kill Wb.FullName--destroys the copy of workbook creted in mydocuments.



I want this copy of workbook to save in the folder created by me.

VB Code:
  1. Application.ScreenUpdating = False
  2.     Set OL = CreateObject("Outlook.Application")
  3.     Set EmailItem = OL.CreateItem(olMailItem)
  4.     fileName = List1.Text '& " - "  & ActiveWorkbook.name
  5.     Debug.Print fileName
  6.    
  7.     For y = 1 To Len(fileName)
  8.         TempChar = Mid(fileName, y, 1)
  9.         Select Case TempChar
  10.         Case Is = "/", "\", "*", "?", """", "<", ">", "|", ":"
  11.         Case Else
  12.             SaveName = SaveName & TempChar
  13.         End Select
  14.     Next y
  15.     ActiveSheet.Copy
  16.     Set Wb = ActiveWorkbook
  17.     Wb.SaveAs SaveName
  18.     Wb.ChangeFileAccess xlReadOnly
  19.     With EmailItem
  20.         .Subject = txtsubject
  21.         .Body = txtmessage
  22.         .To = Txtname
  23.         .Attachments.Add Wb.FullName
  24.         .Send
  25.     End With
  26.     Kill Wb.FullName
  27.     Wb.Close False
  28.      
  29.     Application.ScreenUpdating = True
  30.      
  31.     Set Wb = Nothing
  32.     Set OL = Nothing
  33.     Set EmailItem = Nothing
  34.    
  35.     End If





If there is any unnecess. code plz tell me......