+ Reply to Thread
Results 1 to 11 of 11

searching only part of the values in a cell

  1. #1
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    searching only part of the values in a cell

    Hello All,

    I have a pretty large sheet to look into ("CellData"). I am looking in column B which has the following value pattern:

    129(8769)

    I would like a vba code to search based upon numbers in brackets i.e 8769 only and once it is found that row should be put in a new sheet.

    Will appreciate any help in this regard.
    Thank you for your help.
    Saziz

  2. #2
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177
    This should get you started.
    In a worksheet (column B) I have three entries that have the exact verbiage and three entries that do not.
    It finds the correct entries based on your Yes or No answers.

    Please Login or Register  to view this content.
    Regards

    Rick
    Win10, Office 365

  3. #3
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241
    Thank you Rick. How can I put the found complete row in a new sheet?
    Appreciate your help.
    Thanks
    Saziz

  4. #4
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177
    Unfortunately, that is an area I am stumbling on for my own code in this post:
    http://www.excelforum.com/showthread.php?t=635034

    If I find a fix I will adapt to the code I provided here.

  5. #5
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241
    Rick,
    Thank you. I will be looking for it.
    Saziz

  6. #6
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    Looking only part of the values in a cell. Can someone help me please?

    Hello All,

    I have a pretty large sheet to look into ("CellData"). I am looking in column B which has the following value pattern:

    129(8769)

    I would like a vba code to search based upon numbers in brackets i.e 8769 only and once it is found that row should be put in a NEW SHEET.

    Will appreciate any help in this regard.
    Thank you for your help.
    Saziz

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    try
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241
    Hi Jindon,
    Thanks for your help. I get 'Object Required' error when I run your code.
    Saziz

  9. #9
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327
    Hi all,

    The only change I had to make to jindon's code was to add an End With and it works well:

    Please Login or Register  to view this content.
    Hope this helps

    Seamus

  10. #10
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241
    SOS,
    Yes I did that too. It says object variable or with block variable not set.

    Thanks
    Saziz

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    Quote Originally Posted by saziz
    SOS,
    Yes I did that too. It says object variable or with block variable not set.

    Thanks
    Saziz
    Is it not working?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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