Hi All, I'm trying to workout how to modify my code to ask the user the file name to save the file as. As you can see at the minute is saves it as test.csv. Thanks Matt.
Private Sub CommandButton1_Click()
Dim filename As String, RC As Long
filename = "c:\temp\test.csv"
ActiveWorkbook.SaveAs filename:=filename, _
FileFormat:=xlCSV, CreateBackup:=False
RC = Shell("Notepad " & filename, 1)
End Sub
Private Sub CommandButton1_Click()
Dim filename As String, RC As Long
filename = "c:\temp\test.csv"
ActiveWorkbook.SaveAs filename:=filename, _
FileFormat:=xlCSV, CreateBackup:=False
RC = Shell("Notepad " & filename, 1)
End Sub