+ Reply to Thread
Results 1 to 3 of 3

Concatenate quote symbol mystery?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-06-2008
    Posts
    7

    Concatenate quote symbol mystery?

    I'm trying to bookend a column of cells within quotes using this formula:

    ="""&A1&"""

    But you can see the problem with the quotes within quotes. Is there a special Excel symbol for quote marks for this to work?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello tekkendork,

    In a formula use CHAR(34) for a double quote. In VBA use Chr$(34) for the double quote.
      'Worksheet Formula
        = CONCATENATE(CHAR(34),A1,CHAR(34)
    
      'VBA Code
        Chr$(34) & A1 & Chr$(34)
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    02-06-2008
    Posts
    7
    excellent! Thanks much for your help

+ 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