Solved

TAB SEPERATED TEXT FILE

Posted on 1998-09-02
1
152 Views
Last Modified: 2010-04-30
I need to create a text file.  Can you show me code from start to finish.  It needs to be these numbers sent to a text file without quotes and seperated by a tab.  EG.

1 tab 3 tab 4 tab 5 6 tab7 tab 8 tab 9 tab 10
11 tab 12 tab 13 tab 14 tab 15 tab 16 tab 17

Etc How do I do this?

0
Comment
Question by:DAVIDH
1 Comment
 
LVL 2

Accepted Solution

by:
VBDesigns earned 40 total points
ID: 1432646
Dim iFF as Integer
Dim iLoop as Integer

iFF = FreeFile

Open "c:\FileName.text" for Output as #iFF
For iLoop = 0 to (count-1)
    Write #iFF, , (cStr(iLoop) + Chr(9)) ' vbTab
Next iLoop

Close #iFF
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS expression Issue finding a string 10 79
Saving history changes to sub form 4 43
Visual Studio 2005 text editor 10 39
Help me. 3 57
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question