Hi,
I'm very new to excel and vba so I apologize in advance if this is a very elementary task. I'm trying to automate something for our team where we only need to extract certain data (Buyer Part, Price, Effective Date). However, we only need this data if it comes after a line break saying "Line item change Add Additional Item". There is a lot more data in the txt file but I only really need these points of data after 'Add Additional Item'.
It is formatted like this in the txt file attached:
************************ LINE ITEM CHANGE ******************************
******************* Add Additional Item *************************
LINE ITEM #: 00310
QUANTITY: 0
MEASUREMENT: EA
PRICE: 53.65(Price per Hundred)
BUYER PART: 06510669AA
DRAWING LETTER: 06510669AA
DCL LATEST CODE: C
DESCRIPTION: SC/HEX.FLG.HD-HEADER.PT.REDUCD.BDY.SPECI
Product Change Notice Number: F101US2007
Model year number: 2022
Model year number: 2018
Model year number: 2016
Model year number: 2020
Model year number: 2021
Model year number: 2015
Model year number: 2019
Model year number: 2017
Model year number: 2023
Effective: 20200701
I have also attached what the output in excel would ideally look like. Any help is here is greatly appreciated
excel 2016 windows 365
Thank you!
I'm very new to excel and vba so I apologize in advance if this is a very elementary task. I'm trying to automate something for our team where we only need to extract certain data (Buyer Part, Price, Effective Date). However, we only need this data if it comes after a line break saying "Line item change Add Additional Item". There is a lot more data in the txt file but I only really need these points of data after 'Add Additional Item'.
It is formatted like this in the txt file attached:
************************ LINE ITEM CHANGE ******************************
******************* Add Additional Item *************************
LINE ITEM #: 00310
QUANTITY: 0
MEASUREMENT: EA
PRICE: 53.65(Price per Hundred)
BUYER PART: 06510669AA
DRAWING LETTER: 06510669AA
DCL LATEST CODE: C
DESCRIPTION: SC/HEX.FLG.HD-HEADER.PT.REDUCD.BDY.SPECI
Product Change Notice Number: F101US2007
Model year number: 2022
Model year number: 2018
Model year number: 2016
Model year number: 2020
Model year number: 2021
Model year number: 2015
Model year number: 2019
Model year number: 2017
Model year number: 2023
Effective: 20200701
I have also attached what the output in excel would ideally look like. Any help is here is greatly appreciated
excel 2016 windows 365
Thank you!