+ Reply to Thread
Results 1 to 3 of 3

Selecting entire row when content is found in specific columns

  1. #1
    Registered User
    Join Date
    09-22-2012
    Location
    Preston, Idaho
    MS-Off Ver
    Excel 2010
    Posts
    1

    Selecting entire row when content is found in specific columns

    Hi I need some help, I need a macro that will Select the entire row (and continue to select as it moves down the workbook, like cntrl clicking) any time their is content of any kind found in columns P-T. I am new to VBA language and I am having a hard time creating a code for this. It is quite a large file(close to 9000 rows). What's a code I can do for this? Thank you!

  2. #2
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Selecting entire row when content is found in specific columns

    Mr.skylerjo

    Welcome to the forum.Upload your file to solve your problem.

  3. #3
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Selecting entire row when content is found in specific columns

    I think your need is to select 9000 rows at a time with one click . Is it is right?

  4. #4
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Selecting entire row when content is found in specific columns

    i thought that even I could write a code for this. Boy, was I wrong :D

    Here's what I came up with. Someone care to explain where my mistake is?

    Please Login or Register  to view this content.
    Last edited by Bishonen; 09-22-2012 at 05:28 PM.

  5. #5
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Selecting entire row when content is found in specific columns

    duplicated post due to forum failure :/

    heres an updated version of the code tho:

    Please Login or Register  to view this content.
    It only selects the last column which is non empty. Adding false behind Select returns an error. Whyyyy ?^^

    PS: Yes, I noticed that the code isn't a solution for the OP (its late over here). But could someone still point out what i was doing wrong? I'd like to select an entire row if its not empty..
    Last edited by Bishonen; 09-22-2012 at 05:43 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Selecting entire row when content is found in specific columns

    Anyone has an idea?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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