Ignore Blanks

  • Thread starter Thread starter Todd
  • Start date Start date
T

Todd

Hi All,

I am currently writing a macro that pulls data in from a
text file, my problem is that the text file contains
blanks and i won't to write a macro that will ignore all
the blanks, and when it reaches a character to read it
into the spreadsheet
Can anyone suggest how i can ignore these blanks?
Thanks
 
I'm using the filesystemobject from the microsoft
scripting references at the moment to read the file into
the spreadsheet.
 
Then whichever method you are using
(Read/Readline/Readall), you should just be able to use

worksheetfunction.substitute(string just read in," ","")
before you output to sheet

Rgds

Rog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top