+ Reply to Thread
Results 1 to 5 of 5

Txt File Creator to ignore blank rows

  1. #1
    Registered User
    Join Date
    04-06-2020
    Location
    Melbourne
    MS-Off Ver
    365
    Posts
    20

    Txt File Creator to ignore blank rows

    Hi Guys,

    I currently have quite a large Module that turns rows of data into a txt file, however if a row is blank it stop the txt file there and doesn't add the next lines into the txt file. How can i get the module to skip the blanks and add the rest of the lines that are under it. I don't want to delete these blank rows as they hold formulas where they may not be blank upon a condition.

    I did not create this module and it's quite large, with all types of checks being performed, just nothing about blank lines.

    Any help is hugely appreciated.
    Last edited by Juve_Fan14; 05-22-2020 at 10:51 PM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Txt File Creator to ignore blank rows


    Hi,

    obviously obvious : just amend the code to not stop the process in case of any blank row …
    At beginner level you can use Excel basics like a filter or an advanced filter for example.

    How can it be a large module as for creating a text file often few codelines are necessary ?

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: Txt File Creator to ignore blank rows

    Quote Originally Posted by Juve_Fan14 View Post
    ... I don't want to delete ... blank rows ...
    ... all types of checks being performed, just nothing about blank lines ...
    Are you sure about this ?

  4. #4
    Registered User
    Join Date
    04-06-2020
    Location
    Melbourne
    MS-Off Ver
    365
    Posts
    20

    Re: Txt File Creator to ignore blank rows

    Hey guys, thanks for the replies.

    Correct, so the .txt file then has to be imported, however it has to be set up in a very specific way for the import to be successful, for example Post Code must be 4 digits(Australia), there can't be symbols in fields, it also tracks that some data hasn't been removed/edited and number of other checks I'm not too familiar with.

    The trigger for the end of the .txt file is blank line.

    I've realised another way I can do it is to have all the data (including blank lines) in another sheet and have the main sheet bring over all the non-blank lines with a separate code. I have a code that gets it close to what I want, I'll keep playing around and ask again if I can't get it.

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: Txt File Creator to ignore blank rows

    Based on what could we help you with ?
    We don't have from you neither the example of the data (false data but the real data layout) nor the code (to verify its syntax).
    The simplest solution would be to combine cells into one long 'string' to check if it is zero length or another and to combine it with the conditional statement 'If', which will decide whether to perform the given operations or not.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Ignore blank rows in an IF Statement
    By connieb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2019, 09:41 PM
  2. Ignore blank rows while printing
    By anilpatni1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2018, 07:17 AM
  3. [SOLVED] Condition Formatting - Can't get it to ignore blank rows
    By ania1224 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2018, 09:09 AM
  4. Index Match Function? Ignore blank rows - (rows without values)
    By jgray in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2015, 01:12 PM
  5. [SOLVED] Running count but ignore blank rows
    By JO505 in forum Excel General
    Replies: 2
    Last Post: 02-24-2015, 09:00 PM
  6. [SOLVED] How can I ignore blank rows in this VB
    By Ginge1267 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-14-2013, 07:21 AM
  7. Query + Ignore Empty/Blank Rows
    By UberSlackr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-01-2012, 11:01 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