+ Reply to Thread
Results 1 to 7 of 7

loop to select used range in a row

  1. #1
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    loop to select used range in a row

    Hello. How can I loop down the rows and select each range with values in it?

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: loop to select used range in a row

    Describe the data layout. Which columns do you need to check? Do you want to select every non-blank cell in the range? Then what?

  3. #3
    Registered User
    Join Date
    11-28-2013
    Location
    Lima Peru
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: loop to select used range in a row

    First, select the range you want to test, and then run the following macro, it will select the cells that have a value in them:
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: loop to select used range in a row

    Please Login or Register  to view this content.
    Last edited by InvisibleMan; 02-22-2016 at 05:01 PM. Reason: Missed Sub off End Sub :(

  5. #5
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    Re: loop to select used range in a row

    @EDUARDO. Could you explain what each part of your code is doing? I struggle with the array and ubound stuff. Thanks.

    @ invisible. Could you do the same thing please?

  6. #6
    Registered User
    Join Date
    11-28-2013
    Location
    Lima Peru
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: loop to select used range in a row

    Stephme55,
    Please check out the comments i have just placed in my code
    Please Login or Register  to view this content.
    Last edited by EduardoHiguchi; 02-22-2016 at 04:04 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: loop to select used range in a row

    Please Login or Register  to view this content.

+ 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] Need VBA to find letter A in Column A:A, select range, popup MsgBox then loop
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2015, 04:05 AM
  2. Need to loop to a ceretain value then select a range of cells
    By rosshkerr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-28-2015, 08:28 AM
  3. [SOLVED] Select method of Range class failed when used in a Worksheets loop
    By runneer in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-25-2013, 10:03 AM
  4. loop to select range
    By Desmond_Mocumi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2013, 10:32 AM
  5. Select Range using variables-used a For Next Loop
    By adiman84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2008, 08:15 PM
  6. Loop to select range of cells representing a month....
    By finlejb in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-02-2008, 08:00 PM
  7. [SOLVED] Specifying Range.Select in a loop
    By MervB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2005, 08:45 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