For this thread would like to know once I opened a txt file instead of opening the entire contents from the file, I would like my macro to Step 1
Look for the line that start with “device” and extract the word beside “device” and place it on column A, look at the image below:
http://www.iimmgg.com/image/ad23050f...db13613f46c077
Step 2:
Look for the line that start with either “test pins” or “test node”, and get the word beside the word “ test pins” or “test node”, and put them in column B. look at the image below:
http://www.iimmgg.com/image/61d6cc69...2d83c1724c497c
Step 3:
Do step 2 until the macro detect the line “end device”, look at the image below:
http://www.iimmgg.com/image/a2954f4d...b59b7f139bbc8e
Keep repeating the three steps until the end of the file. look at the image below:
http://www.iimmgg.com/image/132e2327...bd2df6977c8df5
The image below shows how the final outcome should look like,
http://www.iimmgg.com/image/1d51c1cc...a707888c6ad4de
I have attached a zip file,
Inside the zip file I have attached a sample workbook with sheet 1 contains a button where the codes should be inserted and sheet2 shows how the sample output looks like
I have also attached a sample .txt file that needs to be extracted
Attachment 5029