Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2007, 10:27 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Text file importing & data processing

Hello, I'm new here.

I have text file, which have data blocks, 5-8 rows of data, values in lines are separated as a single space. Between blocks are one blank line feed. Block's length is 5-8 rows, depending of certain varible, which is located fourth row and twentieth value. So it is inside of block.. Text file looks like this:

[1# data block, 5-8 rows]

[2# data block, 5-8 rows]

[3# data block, 5-8 rows]

......

I want to import data blocks to cleartext, like this:

[1# data block, 5-8 rows]
field1=
field2=
field3=
..........

[2# data block, 5-8 rows]
field1=
field2=
field3=
..........

And so on.. Please help me, probably Excel is not the best tool to do this, but I have to use it. Can anyone help step-by-step ? I can extract data values to cleartext, but importing text file to excel as above is difficult..








Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply Custom template & import data from text file shampabera Excel VBA 2 August 8th, 2005 07:41 AM
How to Read,Write, & Save (File Processing) ck C++ Programming 2 April 18th, 2005 07:28 AM
Importing data from a text file nav PHP How-To 2 March 7th, 2005 02:42 PM
How to Read,Write, & Save (File Processing) ck Visual C++ 1 January 23rd, 2005 02:16 PM
BCP error while importing data from a text file happygv SQL Server ASP 1 December 15th, 2003 09:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.