VBA Script to Transform Text File Data into Fields with Values

nshah4

New Member
Joined
Mar 19, 2018
Messages
1
Hi All,

I am trying to figure out how to use a script to transform the following data into fields/columns with their associated values. Each file has a varying amount of sub-data under it, each delineated by some number of dashes (e.g. "-----------" or "------------------------------"). For example, in the data below, for file 1, there is Basic, Container, Video and Audio information, but for file 2, there is just Basic information. There are thousands of these that I want to run through with varying amounts of sub-data to basically come out with the File names in Column A and the associated metadata in Columns B through whatever. Would really appreciate any help on writing a script to do this! Thank you!
VideoFile.mov
--------------
File
Name: VideoFile.mov
Size: 14.7 GB (14694697332 bytes)
Kind: QuickTime movie
UTI: com.apple.quicktime-movie
Location: /Volumes/PLT-24819-1_1/PLT-24819-1/002
Created: September 14 2009 at 3:42:20 PM
Modified: September 14 2009 at 3:42:20 PM
Container
Format: QuickTime
Format/Info: Original Apple specifications
Duration: 5 min 40 s 873 ms
Overall bit rate mode: Constant
Overall bit rate: 345 Mb/s
Encoded date: UTC 2009-09-14 22:28:28
Tagged date: UTC 2009-09-14 22:42:20
Writing library: Apple QuickTime
Video
ID: 2
Format: Avid Meridien Uncompressed
Codec ID: AVUI
Duration: 5 min 40 s 873 ms
Bit rate mode: Constant
Bit rate: 344 Mb/s
Width: 720 pixels
Height: 486 pixels
Pixel aspect ratio: 1.000
Display aspect ratio: 3:2
Frame rate mode: Constant
Frame rate: 29.970 (29970/1000) FPS
Frame count: 10216
Standard: NTSC
Scan type: Interlaced
Bits/(Pixel*Frame): 32.849
Stream size: 14.7 GB (99.9%)
Language: English
Encoded date: UTC 2009-09-14 22:28:28
Tagged date: UTC 2009-09-14 22:42:20
Audio
ID: 1
Format: ADPCM
Format settings: IMA
Codec ID: ima4
Duration: 5 min 40 s 873 ms
Bit rate mode: Constant
Channel(s): 2 channels
Sampling rate: 44.1 kHz
Bit depth: 16 bits
Stream size: 15.0 MB (0.1%)
Language: English
Encoded date: UTC 2009-09-14 22:28:28
Tagged date: UTC 2009-09-14 22:42:20
B004_C001_0515TT_001.R3D
---------------------------------------------------------------------------------------
File
Name: B004_C001_0515TT_001.R3D
Size: 2.15 GB (2146098688 bytes)
Kind: Document
UTI: dyn.ah62d4rv4ge81eq5e
Location: /Volumes/PLT-24819-1_1/PLT-24819-1/002/B004_C001_0515TT_001.R3D
Created: May 15 2010 at 1:14:46 PM
Modified: May 15 2010 at 1:15:42 PM
Container
Format: R3D

<tbody>
</tbody>
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top