+ Reply to Thread
Results 1 to 5 of 5

Check the existence of string

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Check the existence of string

    Hello everyone

    I have a string variable for range A1 .. the string has special characters
    How can I use instr to check the string .. The problem is that when copying the string that I need to search for the special character appears in improper way so I don't get correct results

    Please Login or Register  to view this content.
    The string in A1 : Persönlich haftender Gesellschafter

    Thanks advanced for help
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Check the existence of string

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,675

    Re: Check the existence of string

    1) Don't use str as a variable name, there's Str function in vba.

    2)
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Check the existence of string

    Thank you very much

    Jinon's trick is perfect .. But how can I get the chrW of specific character?

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Check the existence of string

    I could know more details about ChrW from this link
    http://dailydoseofexcel.com/archives...scw-functions/

    Thank you very much for great help

+ 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. [SOLVED] Check Existence of Range Name
    By chasoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2016, 09:24 PM
  2. [SOLVED] Check for existence
    By CWillis in forum Excel General
    Replies: 3
    Last Post: 05-31-2006, 08:25 AM
  3. VBA to check for existence of a DSN
    By GPO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2006, 12:30 AM
  4. How do I check for existence of a worksheet?
    By Ron de Bruin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] How do I check for existence of a worksheet?
    By LizzieHW in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] How do I check for existence of a worksheet?
    By LizzieHW in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. How do I check for existence of a worksheet?
    By LizzieHW in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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