Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to import data from a firewall log into excel sheet but the logfile (txt) has rows which contains fieldnames seperated with the = signs. The values and fieldnames also contains spaces see example below. Can anybody help me to write a macro so I can import the data into Excel? Example: start_time="2007-09-20 15:29:33" duration=59 policy_id=2 service=udp/port:1900 proto=17 src zone=Trust dst zone=Untrust action=Permit sent=343 rcvd=0 src=1.2.3.4 dst=4.3.2.1 src_port=1487 dst_port=1900 src-xlated ip=1.0.1.0 port=12570<000 start_time="2007-09-20 15:29:33" duration=59 policy_id=2 service=udp/port:1900 proto=17 src zone=Trust dst zone=Untrust action=Permit sent=402 rcvd=0 src=1.2.3.4 dst=4.3.2.1 src_port=1488 dst_port=1900 src-xlated ip=1.0.1.0 port=11673<000 start_time="2007-09-20 15:29:33" duration=59 policy_id=2 service=udp/port:1900 proto=17 src zone=Trust dst zone=Untrust action=Permit sent=408 rcvd=0 src=1.2.3.4 dst=4.3.2.1 src_port=1489 dst_port=1900 src-xlated ip=1.0.1.0 port=12423<000 start_time="2007-09-20 15:29:33" duration=59 policy_id=2 service=udp/port:1900 proto=17 src zone=Trust dst zone=Untrust action=Permit sent=396 rcvd=0 src=1.2.3.4 dst=4.3.2.1 src_port=1490 dst_port=1900 src-xlated ip=1.0.1.0 port=12116<000 Thanks!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Import data from one file to another | Excel Discussion (Misc queries) | |||
import data from txt file to an existing excel file | Excel Discussion (Misc queries) | |||
Import File Data | Excel Worksheet Functions | |||
How do I import text file, analyze data, export results, open next file | Excel Programming | |||
Get External Data, Import Text File, File name problem | Excel Programming |