+ Reply to Thread
Results 1 to 2 of 2

using vba to import text into excel

  1. #1
    Registered User
    Join Date
    01-22-2007
    Posts
    6

    using vba to import text into excel

    Hello all- glad I found your forum!

    I have a question:

    I'd like to know if/how this is possible using vba.I'd like excel to "scan" a text file and import:

    1.ALL the lines of text before a line that contains a certain character , * for example

    2. ONLY text thereafter that is bound in parenthesis.

    Total newbie, any help would be greatly appreciated

    Thanks Alot,

    Scott L.

  2. #2
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    Two options:
    1. just open the entire file as an Excel file, and delete what you do not want; this is easiest, as you can use the macro recorder to get started and then edit

    2. open the text file as a textstream and use VBA logic to process the textstream one line at a time

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1