What am I missing here?
Here is the original string:
"029ALLAROAMARKE","P05055900101","HO",20041119,"20041026","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041119,"","","",0,"","","","","029ALLAROAMARKE","P05055900101","LI","","","","","","","","","","","","","","",1,"",105.00,"","","","","","","","","","","","","","",20041119,"","","","","","","","","","","","","","","","17102160",0,"","","","029ALLAROAMARKE","P05055900101","LC","C","G830","","",20.00,"","","","1ZY9309Y0305618895","","200","029ALLAROAMARKE","P05055900101","ST",125.00,"","","","","","","","","","",1,"","","","","","","","",""
Here is my code:
Here is my output:
"029ALLAROAMARKE","P05055900101","HO",20041119,"20041026","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041119,"","","",0,"","","",""
"029ALLAROAMARKE","P05055900101","LI","","","","","","","","","","","","","","",1,"",105.00,"","","","","","","","","","","","","","",20041119,"","","","","","","","","","","","","","","","17102160",0,"","",""
"029ALLAROAMARKE","P05055900101","LC","C","G830","","",20.00,"","","","1ZY9309Y0305618895","","200"
"029ALLAROAMARKE","P05055900101","ST",125.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05055900101","HO",20041119,"20041026","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041119,"","","",0,"","","","","029ALLAROAMARKE","P05055900101","LI","","","","","","","","","","","","","","",1,"",105.00,"","","","","","","","","","","","","","",20041119,"","","","","","","","","","","","","","","","17102160",0,"","","","029ALLAROAMARKE","P05055900101","LC","C","G830","","",20.00,"","","","1ZY9309Y0305618895","","200","029ALLAROAMARKE","P05055900101","ST",125.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05061010102","HO",20041122,"20041029","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041122,"","","",0,"","","",""
"029ALLAROAMARKE","P05061010102","LI","","","","","","","","","","","","","","",1,"",37.00,"","","","","","","","","","","","","","",20041122,"","","","","","","","","","","","","","","","08142770",0,"","",""
"029ALLAROAMARKE","P05061010102","LC","C","G830","","",12.00,"","","","1ZY9309Y0305627625","","200"
"029ALLAROAMARKE","P05061010102","ST",49.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05061010102","HO",20041122,"20041029","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041122,"","","",0,"","","","","029ALLAROAMARKE","P05061010102","LI","","","","","","","","","","","","","","",1,"",37.00,"","","","","","","","","","","","","","",20041122,"","","","","","","","","","","","","","","","08142770",0,"","","","029ALLAROAMARKE","P05061010102","LC","C","G830","","",12.00,"","","","1ZY9309Y0305627625","","200","029ALLAROAMARKE","P05061010102","ST",49.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05062460101","HO",20041122,"20041101","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041122,"","","",0,"","","",""
I need to put a vbcrlf before each "029ALLAROAMARKE"
Any help or guidance is appreciated.
Thanks in advance,
Donald
Here is the original string:
"029ALLAROAMARKE","P05055900101","HO",20041119,"20041026","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041119,"","","",0,"","","","","029ALLAROAMARKE","P05055900101","LI","","","","","","","","","","","","","","",1,"",105.00,"","","","","","","","","","","","","","",20041119,"","","","","","","","","","","","","","","","17102160",0,"","","","029ALLAROAMARKE","P05055900101","LC","C","G830","","",20.00,"","","","1ZY9309Y0305618895","","200","029ALLAROAMARKE","P05055900101","ST",125.00,"","","","","","","","","","",1,"","","","","","","","",""
Here is my code:
Code:
While Not Settle_In_File.AtEndOfStream
Dim s As String
s = Settle_In_File.ReadLine
Debug.Print Settle_In_File.Line
Settle_Detail_File.Write (Replace(s, ",""029ALLAROAMARKE""", vbCrLf & """029ALLAROAMARKE""")) & (Replace(s, """""029ALLAROAMARKE""", vbCrLf & """029ALLAROAMARKE"""))
Wend
Here is my output:
"029ALLAROAMARKE","P05055900101","HO",20041119,"20041026","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041119,"","","",0,"","","",""
"029ALLAROAMARKE","P05055900101","LI","","","","","","","","","","","","","","",1,"",105.00,"","","","","","","","","","","","","","",20041119,"","","","","","","","","","","","","","","","17102160",0,"","",""
"029ALLAROAMARKE","P05055900101","LC","C","G830","","",20.00,"","","","1ZY9309Y0305618895","","200"
"029ALLAROAMARKE","P05055900101","ST",125.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05055900101","HO",20041119,"20041026","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041119,"","","",0,"","","","","029ALLAROAMARKE","P05055900101","LI","","","","","","","","","","","","","","",1,"",105.00,"","","","","","","","","","","","","","",20041119,"","","","","","","","","","","","","","","","17102160",0,"","","","029ALLAROAMARKE","P05055900101","LC","C","G830","","",20.00,"","","","1ZY9309Y0305618895","","200","029ALLAROAMARKE","P05055900101","ST",125.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05061010102","HO",20041122,"20041029","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041122,"","","",0,"","","",""
"029ALLAROAMARKE","P05061010102","LI","","","","","","","","","","","","","","",1,"",37.00,"","","","","","","","","","","","","","",20041122,"","","","","","","","","","","","","","","","08142770",0,"","",""
"029ALLAROAMARKE","P05061010102","LC","C","G830","","",12.00,"","","","1ZY9309Y0305627625","","200"
"029ALLAROAMARKE","P05061010102","ST",49.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05061010102","HO",20041122,"20041029","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041122,"","","",0,"","","","","029ALLAROAMARKE","P05061010102","LI","","","","","","","","","","","","","","",1,"",37.00,"","","","","","","","","","","","","","",20041122,"","","","","","","","","","","","","","","","08142770",0,"","","","029ALLAROAMARKE","P05061010102","LC","C","G830","","",12.00,"","","","1ZY9309Y0305627625","","200","029ALLAROAMARKE","P05061010102","ST",49.00,"","","","","","","","","","",1,"","","","","","","","","""029ALLAROAMARKE","P05062460101","HO",20041122,"20041101","","","","","","","","","","","","","560366","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",20041122,"","","",0,"","","",""
I need to put a vbcrlf before each "029ALLAROAMARKE"
Any help or guidance is appreciated.
Thanks in advance,
Donald