+ Reply to Thread
Results 1 to 5 of 5

Select entire Column of data even when there are blanks in some rows, xlDown

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Select entire Column of data even when there are blanks in some rows, xlDown

    Hi guys,

    I am trying to find a valid code that would be able to select all data in a the Column "26" on my Daily Input Sheet. [first paragraph of code] I tried using the code below, it works but it stops where there are breaks in the data. For example the raw data goes until row ~1500 but along the way there could be some rows that are blank, so Excel simply selects until say row 130 where the first blank is... Does anyone know how I can get around this problem and have VBA keep going until the last identifiable piece of data in that row ~1500, and select all of it including the blanks, where I would then paste it on the [2nd paragraph of code].

    Please Login or Register  to view this content.
    Thank you kindly, appreciate any help on this

  2. #2
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Select entire Column of data even when there are blanks in some rows, xlDown

    You could change it to
    Please Login or Register  to view this content.
    Or even better, something like this. It's always a good idea to avoid .activate and .select syntax wherever possible.
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Select entire Column of data even when there are blanks in some rows, xlDown

    Try
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Select entire Column of data even when there are blanks in some rows, xlDown

    Thank you so much for you're help, this is a way to do it ansolved the Thread

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Select entire Column of data even when there are blanks in some rows, xlDown

    Glad we could help & thanks for the feedback

+ 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. How to select entire rows which has values in column b
    By salwanmeenakshi1502 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2016, 04:59 AM
  2. Select 15,000 rows that has some data and some blanks
    By storkhiw in forum Excel General
    Replies: 1
    Last Post: 02-22-2016, 03:12 PM
  3. [SOLVED] xldown and select till desired column VBA
    By gr8spot in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-24-2015, 02:29 AM
  4. How to select entire rows by specific column value?
    By gabrielemucho in forum Excel General
    Replies: 5
    Last Post: 09-09-2014, 08:06 AM
  5. [SOLVED] Copy Data Range & Paste at Selection.End(xlDown).Select
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2014, 06:15 AM
  6. [SOLVED] Select column C and delete blank entire rows Till C300
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2014, 08:55 AM
  7. Ignore blanks using xldown etc
    By stankraj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-26-2009, 05:10 PM

Tags for this Thread

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