Results 1 to 15 of 15

Excel not reading blank lines

Threaded View

Maximus89 Excel not reading blank lines 01-27-2015, 08:12 PM
TMS Re: Excel not reading blank... 01-27-2015, 08:19 PM
Pete_UK Re: Excel not reading blank... 01-27-2015, 08:21 PM
Maximus89 Re: Excel not reading blank... 01-27-2015, 08:26 PM
TMS Re: Excel not reading blank... 01-27-2015, 08:36 PM
Pete_UK Re: Excel not reading blank... 01-27-2015, 08:42 PM
Maximus89 Re: Excel not reading blank... 01-27-2015, 08:51 PM
Pete_UK Re: Excel not reading blank... 01-27-2015, 09:22 PM
Maximus89 Re: Excel not reading blank... 01-27-2015, 11:24 PM
Pete_UK Re: Excel not reading blank... 01-28-2015, 06:18 AM
TMS Re: Excel not reading blank... 01-28-2015, 06:39 AM
Pete_UK Re: Excel not reading blank... 01-28-2015, 06:56 AM
TMS Re: Excel not reading blank... 01-28-2015, 07:36 AM
Maximus89 Re: Excel not reading blank... 01-28-2015, 05:01 PM
TMS Re: Excel not reading blank... 01-28-2015, 05:05 PM
  1. #1
    Registered User
    Join Date
    01-27-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    5

    Excel not reading blank lines

    I have data in Excel which I imported from another program. The result is displaying the text in cells with 4 blank lines before the text, so in a single cell it would have something like this:

    <Blank Line>
    <Blank Line>
    <Blank Line>
    <Blank Line>
    TEXT


    My problem is my VBA code to remove these lines doesn't appear to be picking them up correctly:

    Columns("A").Replace What:=Chr(10)&Chr(10)&Chr(10)&Chr(10), Replacement:="", _
    'LookAt:=xlPart, SearchFormat:=False, ReplaceFormat:=False

    It works when I look for the a single Chr(10) but not when there are 4 together, even though there are 4 blank lines together within the cell.

    Can anyone help?

    Thanks
    Last edited by Maximus89; 01-27-2015 at 08:25 PM. Reason: Spelling

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] FileSystemObject not reading lines
    By bimbim9 in forum Access Programming / VBA / Macros
    Replies: 8
    Last Post: 10-24-2014, 11:46 AM
  2. Reading different lines of data from a textfile into Excel
    By TGM™ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2013, 09:34 AM
  3. Skip Blank lines when reading a text file
    By parasbshah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2011, 12:36 PM
  4. Reading Lines from a Textbox
    By Shane O in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2010, 11:24 AM
  5. [SOLVED] reading txt file and copying the lines in new excel file
    By shresthaprateek@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2006, 02:25 PM

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