+ Reply to Thread
Results 1 to 2 of 2

VBA string with special characters

  1. #1
    Forum Contributor
    Join Date
    09-21-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    131

    VBA string with special characters

    Hello all,

    I have got the following string which i need to store inside VBA script.

    Please Login or Register  to view this content.
    There is my following attempt:

    Please Login or Register  to view this content.
    But when I try to run the code it errors out highlighting first CHAR with a error message saying: Sub of Function not defined.

    Please advice.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: VBA string with special characters

    The VBA equivalent of CHAR is Chr
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Extract special characters from a string
    By Nadine74 in forum Excel General
    Replies: 3
    Last Post: 04-17-2014, 01:41 PM
  2. Remove special characters from string - apply to multiple cells
    By Carcophan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2013, 10:42 AM
  3. [SOLVED] find word in string, count how many special characters are to its left
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 06:46 PM
  4. find position of special characters in string
    By RonanKeating in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-08-2012, 02:41 PM
  5. Macro to replace European characters with non "special" English characters?
    By johanna0507 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 09:13 AM
  6. String Match & Special Characters
    By camikins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2010, 01:33 PM
  7. [SOLVED] Special characters in a string variable
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2006, 03:40 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