+ Reply to Thread
Results 1 to 8 of 8

non-case sensitive 'string' search?

Hybrid View

intothewild non-case sensitive 'string'... 11-25-2012, 02:03 PM
Jakobshavn Re: non-case sensitive... 11-25-2012, 02:10 PM
intothewild Re: non-case sensitive... 11-25-2012, 02:17 PM
intothewild Re: non-case sensitive... 11-25-2012, 02:18 PM
mike7952 Re: non-case sensitive... 11-25-2012, 02:13 PM
intothewild Re: non-case sensitive... 11-25-2012, 02:21 PM
mike7952 Re: non-case sensitive... 11-25-2012, 02:42 PM
intothewild Re: non-case sensitive... 11-25-2012, 03:01 PM
  1. #1
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: non-case sensitive 'string' search?

    Try this instead of like

    If InStr(1, Cells(ptr, astColumn), "Filming", vbTextCompare) > 0 Then
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  2. #2
    Forum Contributor
    Join Date
    06-29-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: non-case sensitive 'string' search?

    Quote Originally Posted by mike7952 View Post
    Try this instead of like

    If InStr(1, Cells(ptr, astColumn), "Filming", vbTextCompare) > 0 Then
    That works, cheers Mike!!

    Can you explain how it works?

    i know the syntax for the INSTR function is:
    InStr( [start], string, substring, [compare] )

    is it the case that vbTextCompare 'is-not' case sensitive?

    how does the > 0 part work?
    Last edited by intothewild; 11-25-2012 at 02:36 PM.

+ 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