T
TriEssent
Hello VBA World,
I am trying to reformat the code below to a CSV record format for importing
into MS Access. I am able to clean the file up (180 pages) and remove the
uninteresting characters. I am able to put a comma before the port numbers
but then I need to put the port numbers (and their description) up on the
same line as the IP address/host name (remove the carriage return). The last
port number of course should have a carriage return after it. Help is
appreciated.
* + 160.32.1.10 mvsgw.santeecooper.com
|___ 1025 network blackjack
* + 160.32.3.254 ncc.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 139 NETBIOS Session Service
|___ 445 Microsoft-DS
|___ 1025 network blackjack
|___ 5168 TrendMicroNormalServer
* + 160.32.4.244 h48mv31.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 445 Microsoft-DS
|___ 2967 Symantec Antivirus
* + 160.32.4.245 cw2k.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 139 NETBIOS Session Service
|___ 445 Microsoft-DS
|___ 1025 network blackjack
|___ 2967 Symantec Antivirus
* + 160.32.4.246 certman.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 139 NETBIOS Session Service
|___ 445 Microsoft-DS
|___ 1025 network blackjack
I am trying to reformat the code below to a CSV record format for importing
into MS Access. I am able to clean the file up (180 pages) and remove the
uninteresting characters. I am able to put a comma before the port numbers
but then I need to put the port numbers (and their description) up on the
same line as the IP address/host name (remove the carriage return). The last
port number of course should have a carriage return after it. Help is
appreciated.
* + 160.32.1.10 mvsgw.santeecooper.com
|___ 1025 network blackjack
* + 160.32.3.254 ncc.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 139 NETBIOS Session Service
|___ 445 Microsoft-DS
|___ 1025 network blackjack
|___ 5168 TrendMicroNormalServer
* + 160.32.4.244 h48mv31.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 445 Microsoft-DS
|___ 2967 Symantec Antivirus
* + 160.32.4.245 cw2k.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 139 NETBIOS Session Service
|___ 445 Microsoft-DS
|___ 1025 network blackjack
|___ 2967 Symantec Antivirus
* + 160.32.4.246 certman.santeecooper.com
|___ 135 DCE endpoint resolution
|___ 139 NETBIOS Session Service
|___ 445 Microsoft-DS
|___ 1025 network blackjack