ok ive taken itrom a differnet angle using some code ive found and changed a bit this works nicely wiht one exception,, it creates a copy of all the worksheets in my workbook
i woul dlike it to just copy one of the worksheets in my workbook , in this case the worksheet called CSV
What do i need to change ?
Sub Copysheet()
Dim sht As Worksheet
Dim NFName As String
Const WBPath = "C:\Users\Scott\Documents\"
For Each sht In ActiveWorkbook.Worksheets
sht.Copy
NFName = WBPath & sht.Name & ".csv"
ActiveWorkbook.SaveAs Filename:=NFName, _
FileFormat:=xlCSV, CreateBackup:=False
ActiveWindow.Close
Next
End Sub
thanks
Bookmarks