Check out the below link with the modified macro
http://office.microsoft.com/en-us/excel/HP102366761033.aspx#Add%20or%20edit%20a%20command%20button%20(Control%20ToolBox%20toolbar)
Sub SaveASCSV()
Dim strFile As String, lngLastRow As Long, lngCol As Long
lngCol = ActiveSheet.Rows(1).Find("Line No", _
LookIn:=xlValues, Lookat:=xlWhole).Column
lngLastRow = ActiveSheet.Cells.Find(What:="*", _
SearchDirection:=xlPrevious, SearchOrder:=xlRows).Row
Cells(2, lngCol).Value = 1
Range(Cells(2, lngCol), Cells(lngLastRow, lngCol)).DataSeries _
Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, Step:=1, _
Stop:=lngLastRow, Trend:=False
strFile = Application.GetSaveAsFilename("", "Text Files (*.csv), *.csv")
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=strFile, FileFormat:=xlCSVMSDOS
Application.DisplayAlerts = True
End Sub
--
Jacob