hi jindon ,
the code which you had made earlier is fine an it give out the desired result which i want, howvever its is only missing out to erase the "HK1" part in that line.
I am attached the workbook so can have look at the
Sample data :
QGYSZI
BOMVS316E/2005NM/11JUL20
1.ALAM/MOHD MAHFOOZ MR
2 QR 729 K 19JUL 7*DOHDFW HK1 0750 1530 19JUL E QR/QGYSZI
3 QR7584 K 19JUL 7*DFWMOB HK1 2105 2246 19JUL E QR/QGYSZI
Output given by your code :
QGYSZI
BOMVS316E/2005NM/11JUL20
1.ALAM/MOHD MAHFOOZ MR
QR 729 19JUL Doha (DOH) Dallas (DFW) HK1 0750 1530 19JUL QR/QGYSZI
QR 7584 19JUL Dallas (DFW) Mobile (MOB) HK1 2105 2246 19JUL QR/QGYSZI
Actual Output required
QGYSZI
BOMVS316E/2005NM/11JUL20
1.ALAM/MOHD MAHFOOZ MR
QR 729 19JUL Doha (DOH) Dallas (DFW) 0750 1530 19JUL QR/QGYSZI
QR 7584 19JUL Dallas (DFW) Mobile (MOB) 2105 2246 19JUL QR/QGYSZI
Please find the code earlier made by you
Hope this helps.
Thanks
Bookmarks