+ Reply to Thread
Results 1 to 2 of 2

Thread: Removing nulls

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    St. Louis, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Removing nulls

    I am trying to copy data from a text file into a spreadsheet. However the data in the text file contains null characters (resultant of an FTP from a mainframe dataset), causing the readline to drop the entire text once the null characters start. Suggestions for any of the following would be appreciated-

    1. Replace the nulls with spaces in VBA
    2. Replace the nulls with spaces while FTP is done
    3. Coax FileSystemObject readline to recognize data beyond the nulls.

    or anything which you feel may help the cause.

    Thanks,
    Sam

  2. #2
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,300

    Re: Removing nulls

    Hi Sam and welcome to the forum.

    Open the text files in word and click on the Paragraph icon. This will show all characters. Copy one of these funny characters to the Find feature in Word and Replace them all with a Space.

    Save you file to a different name than the original and see if it imports any better.

    If you get it into Excel use the Code Function to find and remove the funny characters.
    One test is worth a thousand opinions.
    Click the * below to say thanks.

+ 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.2.0