Thanks Vaibhav works as expected.

On 14 September 2014 06:41, Vaibhav Joshi <v...@vabs.in> wrote:

> Hey
>
> See this, click to run macro, when prompted selct video log file...
>
> Cheers!!
>
> +++++
> *I did not do this for you. God is here working through me for you.*
>
> On Sat, Sep 13, 2014 at 6:34 AM, Jordan Rees <jordan.r...@gmail.com>
> wrote:
>
>> Hello everyone;
>>
>> I am looking for a simple macro to extract information from a text file
>> and paste it into columns in excel.
>>
>>
>> ------------------------------------------------------------------------------------------------
>>
>> I need to extract the the Video File Name, Project Task ID, Date, From
>> Time, To Time and paste it into columns in excel as shown below.
>>
>> Video File Name                      Project                         Date    
>>         From Time       To Time20140901191709109@DVR2_Ch1.asf   
>> NE-LCP_SINS_2014_LC-SB-034_0001 1/9/2014                16:47:09             
>>    17:17:0920140901191709500@DVR2_Ch2.asf  NE-LCP_SINS_2014_LC-SB-034_0001 
>> 1/9/2014                16:47:09                17:17:09
>>
>> Attached is the text file and excel example.
>>
>> Specific info:
>>
>> The Video File name is all the .asf extensions
>> The Project Task ID is contained in the Directory name
>> The Date is taken from the .asf file name ex.
>> 20140901191709109@DVR2_Ch1.asf, gives me a date of > 20140901
>>
>> The Times are a bit weird and are extracted from the .asf file name. In
>> this particular case we are taking the UTC time in the file name and
>> subtracting -2.5 hours to get the "From Time", then taking the file name
>> and subtracting -2.0 hours to obtain the "To Time". Each video file should
>> be 30 minutes. ex. 20140901191709109@DVR2_Ch1.asf, gives a From Time of
>> 16:47:09 and a To time of 17:17:09.
>>
>>
>>  --
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>> https://www.facebook.com/discussexcel
>>
>> FORUM RULES
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>> 4) Acknowledge the responses you receive, good or bad.
>> 5) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>> members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to excel-macros+unsubscr...@googlegroups.com.
>> To post to this group, send email to excel-macros@googlegroups.com.
>> Visit this group at http://groups.google.com/group/excel-macros.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/excel-macros/ISUViJdNoXA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to