Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

TAB SEPERATED TEXT FILE

Posted on 1998-09-02
1
153 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

837 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