Hello Riz,
Here is another macro to save the data as aNotepad file.
Sub SaveToNotepad()
Dim Data As Variant
Dim Filepath As String
Dim Rng As Range
Dim row As Long
Dim Wks As Worksheet
Filepath = "C:\Temp\Test.qif"
Set Wks = Worksheets("Sheet1")
Set Rng = Wks.Range("K1", Wks.Cells(Rows.Count, "K").End(xlUp))
ReDim Data(1 To Rng.Rows.Count, 1)
Data = Rng.Value
Open Filepath For Output Access Write As #1
For row = 1 To Rng.Rows.Count
If IsNumeric(Data(row, 1)) Then
If Data(row, 1) < 0 Then
Print #1, "$" & Data(row, 1)
End If
Else
Print #1, Data(row, 1)
End If
Next row
Close #1
End Sub
Bookmarks