Results 1 to 3 of 3

Error Create a String containing "

Threaded View

EricSomin Error Create a String... 07-31-2013, 02:36 PM
Norie Re: Error Create a String... 07-31-2013, 02:38 PM
EricSomin Re: Error Create a String... 07-31-2013, 02:43 PM
  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:

    Function Binding(Val As String, Quan As Integer)
        If Val = "Combound Under 1" " Then
            Binding = Quan * 3
    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.

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