+ Reply to Thread
Results 1 to 11 of 11

Select cell with text

  1. #1
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Select cell with text

    Hello, I have a problem I need some help with. I have a worksheet that I'm looking in column F and when text is found in cell I just need to select it. Here is the code I'm trying and its not working.
    Please Login or Register  to view this content.
    In column F there are mostly cells with a numeric value and very few that are actual text.

    Thank you for the help!!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select cell with text

    What do you want too do with it once it is selected? The loop just selects and goes too the next cell?

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Select cell with text

    What I'm really wanting to do is copy the entire rows from that text to the next text and paste on sheet 2. Then loop through sheet1 doing this same thing.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select cell with text

    Do you mean like this?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Select cell with text

    That's really close! In the F:F column text and numrics are found. What I need is the Text value and the following rows copied and moved to another worksheet. When the next Text value is found, do the same thing. The worksheet name is the first text value found. So the text values would be the worksheet names. I would attached the sheet by its extremely large!

    Thank you for this help!

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select cell with text

    Try:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Select cell with text

    Getting an error "Subscript out of range" - Not sure what to change.
    Please Login or Register  to view this content.



    I see.. none of the sheet names are added. Each text value you add a new sheet.
    Last edited by Tortus; 12-10-2014 at 05:08 PM.

  8. #8
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Select cell with text

    Book1.xlsx

    I made a smaller file.

    Notice the DD 73 is in the data twice. This is okay to be in 1 tab called DD 73 as long as it is in the same order. I forgot that can happen at times... same name.
    Last edited by Tortus; 12-10-2014 at 05:24 PM.

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select cell with text

    Can you provide a Result sheet as well on the attachment. That way we can be sure what you are trying to achieve.

  10. #10
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Select cell with text

    Book1C.xlsx

    This should help.

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select cell with text

    Try:

    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. Display text on select cell
    By Hrki87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2014, 06:19 PM
  2. [SOLVED] Find cell based on its text value in row 1, then select the cell directly below that
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2014, 09:40 AM
  3. Macro to Find Matching text in a cell and select a specif cell
    By Carolynsdesk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2013, 07:28 AM
  4. Select specific text from one cell and move to another cell
    By Cliffavon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-02-2013, 04:08 AM
  5. Replies: 1
    Last Post: 01-25-2013, 12:44 AM

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