Hi
I am using Excel 2000
I have written code in excel vba to automatically send a csv file
through email (Microsoft outlook)
I would like to save the excel file as a csv file and then send the csv file through email
This is the code I am writing
ActiveWorkbook.SaveAs Filename:="c:\Data\Inv_Costs.csv", FileFormat:=xlCSV, _
CreateBackup:=False
ActiveWorkbook.HasRoutingSlip = True
With ActiveWorkbook.RoutingSlip
.Recipients = Array("r_brown@ibm.com", _
"j_hudson@ibm.com")
.Subject = "Inventory Costs"
.Message = "Inventory Costs Spread sheet"
.Delivery = xlAllAtOnce
.ReturnWhenDone = False
.TrackStatus = False
End With
ActiveWorkbook.Route
ActiveWorkbook.Close
I would like to send the file as a CSV attachment
However the file is going as a XLS attachment
Can any one please correct my code
thanks
I am using Excel 2000
I have written code in excel vba to automatically send a csv file
through email (Microsoft outlook)
I would like to save the excel file as a csv file and then send the csv file through email
This is the code I am writing
ActiveWorkbook.SaveAs Filename:="c:\Data\Inv_Costs.csv", FileFormat:=xlCSV, _
CreateBackup:=False
ActiveWorkbook.HasRoutingSlip = True
With ActiveWorkbook.RoutingSlip
.Recipients = Array("r_brown@ibm.com", _
"j_hudson@ibm.com")
.Subject = "Inventory Costs"
.Message = "Inventory Costs Spread sheet"
.Delivery = xlAllAtOnce
.ReturnWhenDone = False
.TrackStatus = False
End With
ActiveWorkbook.Route
ActiveWorkbook.Close
I would like to send the file as a CSV attachment
However the file is going as a XLS attachment
Can any one please correct my code
thanks