Thanks JBeaucaire for your help. It works.
I made some changes to your codes. I wanted to extract some data into column C using the same file.
What I wanted to do is to look for line that start with either “! Silicon nodes” or “! Nodes” and extract the next word into column C.
I did manage to do this.
I inserted the following codes:
I also replaced the following codes
destRow = sh2.Range("B" & Rows.Count).End(xlUp).Row + 2
TO
destRow = sh2.Range("B" & Rows.Count).End(xlUp).Row + 2 Or sh2.Range("C" & Rows.Count).End(xlUp).Row
So once I extract the file my workbook look something like the image below.
http://www.iimmgg.com/image/fe049a38...43033fc4ca416f
But I want to remove the empty cells in column B and C. Take a look at the image below.
http://www.iimmgg.com/image/23f34c21...71ba30b31dd57f
Do you know what changes I must make?
I have attached a sample workbook with the edited codes and the file i used to extract
BScan_extract.zip
Bookmarks