I would like to extract numbers (underlined) from the string of text below and map it to columns on another sheet.
The mapping is as follows:
"AB123" to column "Number"
"9XWBW" to column "Registration"
"61" to "Adult"
"2" to "Child"
"0" to "Infant"
"3488" to "Cargo"
"0" to "Mail"
"438" to "Baggage"
The format from the string of text below is always the same. How can I set-up a macro to extract the required data accordingly?
LDM
AB123/16.9XWBW.J10Y100.2/6
-XYZ.61/2/0.0.T9138.1/2401.2/4296.4/2441.PAX/1/62.PAD/0/0
.LTF/44L.PIL/25R.RMD/26/0
SI BW 120975
BI 65.2
SERVICE WEIGHT ADJUSTMENT WEIGHT/INDEX
ADD
NIL
DEDUCTIONS
NIL
XYZ FRE 3488 POS 0 BAG 438
END OF DOCUMENT