+ Reply to Thread
Results 1 to 3 of 3

Error Create a String containing "

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Error Create a String containing "

    Im attempting to create a string that contains a quotation mark to denote inches. Here is the Code:

    Please Login or Register  to view this content.
    However this gives me an error. The system sees the first (") and thinks im trying to end my string. Thus it expects to see my (Then) statment following the first ("). Intead it sees another (") and it gets confused. Is there a way around this?

    How can i denote that the first quotation mark is still part of the string, and not denoting the end of the string...


    Thanks,

    -Eric
    Last edited by EricSomin; 07-31-2013 at 02:44 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Error Create a String containing "

    Eric

    Either double up the quotes, or use Chr(34).
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Error Create a String containing "

    Wonderful, the Chr(34) worked perfectly.

    Thank you so much Norie =)

+ 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. Need to Create Error Message Box during Runtime error 1004
    By ExcelHelp2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2013, 06:24 AM
  2. Replies: 8
    Last Post: 08-07-2012, 10:15 AM
  3. Excel 2007 : How do I create a text string from this?
    By cheggers in forum Excel General
    Replies: 2
    Last Post: 02-02-2010, 02:06 PM
  4. Cannot create text string
    By jcprata in forum Excel General
    Replies: 4
    Last Post: 11-24-2009, 07:51 AM
  5. create a Conditional String
    By kaffal in forum Excel General
    Replies: 1
    Last Post: 01-07-2009, 11:09 AM

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