+ Reply to Thread
Results 1 to 4 of 4

Searching through strings with commas

  1. #1
    Registered User
    Join Date
    07-22-2011
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2000
    Posts
    7

    Searching through strings with commas

    Hi all,

    As part of a VB code, I need to filter through names, containing commas. Keep the old and hide/delete the old.

    I used the following when recording the code which worked in the document:
    Please Login or Register  to view this content.
    When using the macro record function, it translated the code to the following, which will not run.
    Please Login or Register  to view this content.

    Any help is appreciated--thanks!
    Last edited by jarochnrol; 07-27-2011 at 01:42 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Searching through strings with commas

    Does this work for you?

    Please Login or Register  to view this content.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    07-22-2011
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2000
    Posts
    7

    Re: Searching through strings with commas

    Perfect. You rock!

  4. #4
    Registered User
    Join Date
    07-15-2011
    Location
    isreal
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Searching through strings with commas

    what is the vba code to check the 4 first letters out of 8 letters?
    lets say for example that i have a workbook named "book1234" and i would to check if the first 4 letters are "book"?
    thank you very much

+ 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